ParallelExecTask Class Reference

ParallelExecTask represents a task submitted to ParallelExecStreamScheduler's thread pool. More...

#include <ParallelExecStreamScheduler.h>

List of all members.

Public Member Functions

 ParallelExecTask (ParallelExecStreamScheduler &scheduler, ExecStream *pStream)
ExecStreamId getStreamId () const
void execute ()

Private Attributes

ParallelExecStreamSchedulerscheduler
ExecStreampStream


Detailed Description

ParallelExecTask represents a task submitted to ParallelExecStreamScheduler's thread pool.

Definition at line 46 of file ParallelExecStreamScheduler.h.


Constructor & Destructor Documentation

ParallelExecTask::ParallelExecTask ( ParallelExecStreamScheduler scheduler,
ExecStream pStream 
) [explicit]

Definition at line 460 of file ParallelExecStreamScheduler.cpp.

References pStream.

00463     : scheduler(schedulerInit)
00464 {
00465     pStream = pStreamInit;
00466 }


Member Function Documentation

ExecStreamId ParallelExecTask::getStreamId (  )  const [inline]

Definition at line 56 of file ParallelExecStreamScheduler.h.

00057     {
00058         return pStream->getStreamId();
00059     }

void ParallelExecTask::execute (  ) 

Definition at line 468 of file ParallelExecStreamScheduler.cpp.

References ParallelExecStreamScheduler::executeManager(), ParallelExecStreamScheduler::executeTask(), pStream, and scheduler.

00469 {
00470     if (pStream) {
00471         scheduler.executeTask(*pStream);
00472     } else {
00473         scheduler.executeManager();
00474     }
00475 }


Member Data Documentation

ParallelExecStreamScheduler& ParallelExecTask::scheduler [private]

Definition at line 48 of file ParallelExecStreamScheduler.h.

Referenced by execute().

ExecStream* ParallelExecTask::pStream [private]

Definition at line 49 of file ParallelExecStreamScheduler.h.

Referenced by execute(), and ParallelExecTask().


The documentation for this class was generated from the following files:
Generated on Mon Jun 22 04:00:40 2009 for Fennel by  doxygen 1.5.1