29#ifndef PX_DEFAULT_CPU_DISPATCHER_H
30#define PX_DEFAULT_CPU_DISPATCHER_H
35#include "common/PxPhysXCommonConfig.h"
36#include "task/PxCpuDispatcher.h"
A CpuDispatcher is responsible for scheduling the execution of tasks passed to it by the SDK.
Definition PxCpuDispatcher.h:50
A default implementation for a CPU task dispatcher.
Definition PxDefaultCpuDispatcher.h:49
virtual void setRunProfiled(bool runProfiled)=0
Enables profiling at task level.
virtual void release()=0
Deletes the dispatcher.
virtual bool getRunProfiled() const =0
Checks if profiling is enabled at task level.
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxDefaultCpuDispatcher * PxDefaultCpuDispatcherCreate(PxU32 numThreads, PxU32 *affinityMasks=NULL, PxDefaultCpuDispatcherWaitForWorkMode::Enum mode=PxDefaultCpuDispatcherWaitForWorkMode::eWAIT_FOR_WORK, PxU32 yieldProcessorCount=0)
Create default dispatcher, extensions SDK needs to be initialized first.
Definition ExtDefaultCpuDispatcher.cpp:36
If a thread ends up waiting for work it will find itself in a spin-wait loop until work becomes avail...
Definition PxDefaultCpuDispatcher.h:87