VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
DtAsyncJobServer Class Reference

Public Member Functions

 DtAsyncJobServer ()
const DtAsyncJobResultlookupAsyncJobResult (size_t id) const
 This call may block if the associated job is actually executing.
virtual DtAsyncJobTokenaddJob (std::auto_ptr< DtAsyncJob > job)
virtual void cancelJob (size_t id)
virtual void cancelAllJobs ()
bool empty ()
virtual void markForRemoval (size_t id)
 Adds the id to myJobsToRemove.
virtual void cleanUpJobs ()
virtual DtAsyncJobStatus jobStatus (size_t id)
virtual bool accessor (DtAsyncJobMap::accessor &a, size_t id)
virtual void printAsyncJobMap ()
 Prints async job IDs and status.

Static Public Member Functions

static size_t getId ()

Protected Attributes

DtAsyncJobMapmyAsyncJobMap
std::list< size_t > myJobsToRemove

Static Protected Attributes

static tbb::mutex theIdGenMutex
static size_t theNextId
static tbb::mutex theJobRemovalQueueMutex

Constructor & Destructor Documentation

DtAsyncJobServer::DtAsyncJobServer ( )

Member Function Documentation

const DtAsyncJobResult* DtAsyncJobServer::lookupAsyncJobResult ( size_t  id) const

This call may block if the associated job is actually executing.

To get a non-blocking call make sure the status of the DtAsyncToken is "complete" before making this call.

virtual DtAsyncJobToken* DtAsyncJobServer::addJob ( std::auto_ptr< DtAsyncJob job)
virtual
virtual void DtAsyncJobServer::cancelJob ( size_t  id)
virtual
virtual void DtAsyncJobServer::cancelAllJobs ( )
virtual
bool DtAsyncJobServer::empty ( )
static size_t DtAsyncJobServer::getId ( )
static
virtual void DtAsyncJobServer::markForRemoval ( size_t  id)
virtual

Adds the id to myJobsToRemove.

The entries for these ids will be removed by cleanUpJobs().

virtual void DtAsyncJobServer::cleanUpJobs ( )
virtual
virtual DtAsyncJobStatus DtAsyncJobServer::jobStatus ( size_t  id)
virtual
virtual bool DtAsyncJobServer::accessor ( DtAsyncJobMap::accessor &  a,
size_t  id 
)
virtual
virtual void DtAsyncJobServer::printAsyncJobMap ( )
virtual

Prints async job IDs and status.

Member Data Documentation

DtAsyncJobMap* DtAsyncJobServer::myAsyncJobMap
protected
tbb::mutex DtAsyncJobServer::theIdGenMutex
staticprotected
size_t DtAsyncJobServer::theNextId
staticprotected
tbb::mutex DtAsyncJobServer::theJobRemovalQueueMutex
staticprotected
std::list<size_t> DtAsyncJobServer::myJobsToRemove
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)