
Convenience subclass of JobServer::Job that includes a semaphore to communicate job completion. More...
#include <Util/JobWithSemaphore.H>


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. | |
Convenience subclass of JobServer::Job that includes a semaphore to communicate job completion.
Definition at line 45 of file JobWithSemaphore.H.
| 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().
1.6.3