JobWithSemaphore Class Reference

Convenience subclass of JobServer::Job that includes a semaphore to communicate job completion. More...

#include <Util/JobWithSemaphore.H>

Inheritance diagram for JobWithSemaphore:
Inheritance graph
[legend]
Collaboration diagram for JobWithSemaphore:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool isJobDone ()
 Job clients call this to test if the job has finished running.
void wait ()
 Job clients call this to block until their job has finished running.
bool isFinished ()
 Determine if job client is finished.

Protected Member Functions

void markFinished ()
 Job subclass implementors call this at the end of their run() function.

Detailed Description

Convenience subclass of JobServer::Job that includes a semaphore to communicate job completion.

Definition at line 45 of file JobWithSemaphore.H.


Member Function Documentation

bool JobWithSemaphore::isFinished (  ) 

Determine if job client is finished.

bool JobWithSemaphore::isJobDone (  ) 

Job clients call this to test if the job has finished running.

Definition at line 59 of file JobWithSemaphore.C.

void JobWithSemaphore::markFinished (  )  [protected]

Job subclass implementors call this at the end of their run() function.

Definition at line 76 of file JobWithSemaphore.C.

References PosixSemaphore::post().

void JobWithSemaphore::wait (  ) 

Job clients call this to block until their job has finished running.

Definition at line 70 of file JobWithSemaphore.C.

References PosixSemaphore::wait().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:24 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3