![]() |
VR-Forces 4.2 Class Documentation
|
Manages async job objects. More...
Public Member Functions | |
| DtAsyncJobServer () | |
| CTOR. | |
| virtual | ~DtAsyncJobServer () |
| Virtual DTOR. | |
| virtual boost::shared_ptr < DtAsyncJobMapEntry > | addJob (DtAsyncJob *job) |
| Add a job to the queue. | |
| virtual void | cancelAllJobs () |
| Set all jobs to cancelled. | |
| virtual bool | empty () const |
| Check to see if there are any jobs in the queue. | |
| virtual bool | running () const |
| Are there currently jobs which are waiting to run or haven't completed? | |
| virtual void | printAsyncJobMap () |
| Prints async job IDs and status. | |
Protected Member Functions | |
| virtual size_t | getNextId () |
| Get the next id. | |
| virtual void | remove (size_t id) |
| Remove id immediately. | |
| virtual void | jobDestroyed (DtAsyncJob &) |
| DtAsyncJob object added previously has been destroyed. | |
Protected Attributes | |
| DtAsyncJobMap | myAsyncJobMap |
| tbb::spin_mutex | myIdGenMutex |
| size_t | myNextId |
| tbb::spin_mutex | myNumTasksMutex |
| size_t | myNumTasks |
Friends | |
| class | DtAsyncJobMapEntry |
| class | DtAsyncJob |
Manages async job objects.
The server must not be deleted before all of its jobs have completed.
| DtAsyncJobServer::DtAsyncJobServer | ( | ) |
CTOR.
|
virtual |
Virtual DTOR.
|
virtual |
Add a job to the queue.
Make sure it has been allocated with tbb placement new allocator.
|
virtual |
Set all jobs to cancelled.
|
virtual |
Check to see if there are any jobs in the queue.
|
virtual |
Are there currently jobs which are waiting to run or haven't completed?
|
virtual |
Prints async job IDs and status.
|
protectedvirtual |
Get the next id.
|
protectedvirtual |
Remove id immediately.
|
protectedvirtual |
DtAsyncJob object added previously has been destroyed.
|
friend |
|
friend |
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
protected |