28 #ifndef PXTASK_PXTASKMANAGER_H    29 #define PXTASK_PXTASKMANAGER_H    65 class PxCpuDispatcher;
   185     virtual void addReference(
PxTaskID taskID) = 0;
   186     virtual void decrReference(
PxTaskID taskID) = 0;
   187     virtual int32_t getReference(
PxTaskID taskID) 
const = 0;
   204 #endif // PXTASK_PXTASKMANAGER_H Definition: GuContactBuffer.h:37
 
Base class of all task types. 
Definition: PxTask.h:44
 
User defined interface class. Used by the library to emit debug information. 
Definition: PxErrorCallback.h:51
 
virtual void startSimulation()=0
Called by the owning scene to start the task graph. 
 
virtual void stopSimulation()=0
Called by the owning scene at the end of a simulation step. 
 
unsigned int PxTaskID
Definition: PxTaskManager.h:41
 
Return code when attempting to find a task that does not exist. 
Definition: PxTaskManager.h:60
 
virtual ~PxTaskManager()
Definition: PxTaskManager.h:178
 
virtual void resetDependencies()=0
Reset any dependencies between Tasks. 
 
A PxBaseTask implementation with immediate execution and simple dependencies. 
Definition: PxTask.h:208
 
#define PX_POP_PACK
Definition: PxPreprocessor.h:330
 
virtual void setCpuDispatcher(PxCpuDispatcher &ref)=0
Set the user-provided dispatcher object for CPU tasks. 
 
PxTask will be run on the CPU. 
Definition: PxTaskManager.h:59
 
virtual PxTaskID getNamedTask(const char *name)=0
Retrieve a task by name. 
 
Enum
Identifies the type of each heavyweight PxTask object. 
Definition: PxTaskManager.h:57
 
virtual PxTaskID submitNamedTask(PxTask *task, const char *name, PxTaskType::Enum type=PxTaskType::TT_CPU)=0
Submit a task with a unique name. 
 
Identifies the type of each heavyweight PxTask object. 
Definition: PxTaskManager.h:52
 
The PxTaskManager interface. 
Definition: PxTaskManager.h:78
 
PxTask execution has been completed. 
Definition: PxTaskManager.h:61
 
virtual void taskCompleted(PxTask &task)=0
Called by the worker threads to inform the PxTaskManager that a task has completed processing...
 
static PxTaskManager * createTaskManager(PxErrorCallback &errorCallback, PxCpuDispatcher *=0)
Construct a new PxTaskManager instance with the given [optional] dispatchers. 
 
virtual PxTaskID submitUnnamedTask(PxTask &task, PxTaskType::Enum type=PxTaskType::TT_CPU)=0
Submit an unnamed task. 
 
#define PX_PUSH_PACK_DEFAULT
Definition: PxPreprocessor.h:329
 
A PxBaseTask implementation with deferred execution and full dependencies. 
Definition: PxTask.h:110
 
virtual void release()=0
Release the PxTaskManager object, referenced dispatchers will not be released. 
 
A CpuDispatcher is responsible for scheduling the execution of tasks passed to it by the SDK...
Definition: PxCpuDispatcher.h:49
 
virtual PxTask * getTaskFromID(PxTaskID id)=0
Retrieve a task given a task ID. 
 
virtual PxCpuDispatcher * getCpuDispatcher() const =0
Get the user-provided dispatcher object for CPU tasks.