Public Member Functions
|virtual void||submitTask (PxBaseTask &task)=0|
|Called by the TaskManager when a task is to be queued for execution. |
|virtual uint32_t||getWorkerCount () const =0|
|Returns the number of available worker threads for this dispatcher. |
A typical implementation would for example use a thread pool with the dispatcher pushing tasks onto worker thread queues or a global queue.
|virtual uint32_t physx::PxCpuDispatcher::getWorkerCount||(||)|| const
Returns the number of available worker threads for this dispatcher.
The SDK will use this count to control how many tasks are submitted. By matching the number of tasks with the number of execution units task overhead can be reduced.
|virtual void physx::PxCpuDispatcher::submitTask||(||PxBaseTask &||task||)||
Called by the TaskManager when a task is to be queued for execution.
Upon receiving a task, the dispatcher should schedule the task to run when resource is available. After the task has been run, it should call the release() method and discard it's pointer.
|[in]||task||The task to be run.|