12 #include <vlutil/vlPrint.h>
13 #include <vlutil/vlExceptions.h>
23 #include <boost/function.hpp>
36 bool operator()()
const;
60 virtual task* execute();
63 virtual task* onExecute() = 0;
66 virtual task* onException() = 0;
73 virtual boost::shared_ptr<DtAsyncJobMapEntry> getEntry()
const = 0;
76 virtual void setEntry(boost::shared_ptr<DtAsyncJobMapEntry>) = 0;
92 boost::shared_ptr<DtAsyncJobMapEntry>
getEntry()
const;
93 void setEntry(boost::shared_ptr<DtAsyncJobMapEntry>);
96 boost::weak_ptr<DtAsyncJobMapEntry>
myEntry;
106 boost::shared_ptr<DtAsyncJobMapEntry>
getEntry()
const;
107 void setEntry(boost::shared_ptr<DtAsyncJobMapEntry>);
112 boost::shared_ptr<DtAsyncJobMapEntry>
myEntry;
Concrete job class which manages a weak pointer to it's job map entry.
Definition: asyncJob.h:89
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.
An asynchronous job that can be added to and executed by a job server.
Definition: asyncJob.h:47
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:265
Default on in debug, off in release.
Definition: objectCounter.h:31
Concrete job class which manages a shared pointer to it's job map entry.
Definition: asyncJob.h:103
virtual bool cancel() const
Returns true if no longer needed.
DtAsyncJobServer * myServer
Definition: asyncJob.h:82
#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:73
Exception for termination of a task during execution.
Definition: asyncJob.h:28
boost::weak_ptr< DtAsyncJobMapEntry > myEntry
Definition: asyncJob.h:96
boost::shared_ptr< DtAsyncJobMapEntry > myEntry
Definition: asyncJob.h:112
General interface which can be passed into an algorithm to control its behavior.
Definition: algorithmManager.h:24
const DtAsyncJob & job
Definition: asyncJob.h:39
For passing to algorithms which may take long enough that they need to check if they can been cancell...
Definition: asyncJob.h:32