13 #include <vlutil/vlPrint.h>
14 #include <vlutil/vlExceptions.h>
24 #include <boost/function.hpp>
37 bool operator()()
const;
51 #ifdef DtObjectDebugger_Enable
63 virtual task* execute();
66 virtual task* onExecute() = 0;
69 virtual task* onException() = 0;
76 virtual boost::shared_ptr<DtAsyncJobMapEntry> getEntry()
const = 0;
79 virtual void setEntry(boost::shared_ptr<DtAsyncJobMapEntry>) = 0;
95 boost::shared_ptr<DtAsyncJobMapEntry>
getEntry()
const;
96 void setEntry(boost::shared_ptr<DtAsyncJobMapEntry>);
99 boost::weak_ptr<DtAsyncJobMapEntry>
myEntry;
109 boost::shared_ptr<DtAsyncJobMapEntry>
getEntry()
const;
110 void setEntry(boost::shared_ptr<DtAsyncJobMapEntry>);
115 boost::shared_ptr<DtAsyncJobMapEntry>
myEntry;
Concrete job class which manages a weak pointer to it's job map entry. Using this job will require th...
Definition: asyncJob.h:92
virtual void setEntry(boost::shared_ptr< DtAsyncJobMapEntry >)=0
Set the job entry.
virtual boost::shared_ptr< DtAsyncJobMapEntry > getEntry() const =0
Returns the entry associated with this task. If it is null the task is no longer needed.
An asynchronous job that can be added to and executed by a job server. Since this class derives from ...
Definition: asyncJob.h:48
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:31
Default on in debug, off in release.
Definition: objectCounter.h:27
Concrete job class which manages a shared pointer to it's job map entry. Using this job does not requ...
Definition: asyncJob.h:106
virtual bool cancel() const
Returns true if no longer needed.
DtAsyncJobServer * myServer
Definition: asyncJob.h:85
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
virtual task * execute()
Do not override. Calls onExecute, then onException if there is an exception thrown.
Manages async job objects.
Definition: asyncJobServer.h:75
Exception for termination of a task during execution.
Definition: asyncJob.h:29
boost::weak_ptr< DtAsyncJobMapEntry > myEntry
Definition: asyncJob.h:99
boost::shared_ptr< DtAsyncJobMapEntry > myEntry
Definition: asyncJob.h:115
General interface which can be passed into an algorithm to control its behavior.
Definition: algorithmManager.h:24
const DtAsyncJob & job
Definition: asyncJob.h:40
For passing to algorithms which may take long enough that they need to check if they can been cancell...
Definition: asyncJob.h:33