![]() |
VR-Forces 5.0.1 Developer's Guide
|
Handle to async job.
This class is designed to be stored by shared pointer by the user. The instance is connected to the actual job object by the server which holds a weak pointer to this object. When the user no longer needs the job they can delete the shared pointer which will delete the job entry. The job can then check for this.
Public Member Functions | |
| DtAsyncJobMapEntry (DtAsyncJobServer *) | |
| virtual | ~DtAsyncJobMapEntry () |
| virtual size_t | id () |
| virtual DtAsyncJobServer & | server () |
| virtual DtAsyncJobStatus | status () const |
| virtual const DtAsyncJobResult * | result () const |
| virtual void | setStatus (DtAsyncJobStatus status) |
| virtual void | setResult (DtAsyncJobStatus status, DtAsyncJobResult *result=0) |
Protected Types | |
| typedef tbb::spin_rw_mutex | Mutex |
Protected Attributes | |
| Mutex | myMutex |
| DtAsyncJobServer * | myServer |
| size_t | myId |
| DtAsyncJobStatus | myStatus |
| std::auto_ptr< DtAsyncJobResult > | myResult |
|
protected |
|
explicit |
|
virtual |
Automatically removes self from server map.
|
virtual |
Server-wide id.
|
virtual |
Job server.
|
virtual |
Get status.
|
virtual |
Get result.
|
virtual |
Set status.
|
virtual |
Set result (takes ownership of result).
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |