RavEngine
Loading...
Searching...
No Matches
physx::PxDefaultCpuDispatcherWaitForWorkMode Struct Reference

If a thread ends up waiting for work it will find itself in a spin-wait loop until work becomes available. Three strategies are available to limit wasted cycles. The strategies are as follows: a) wait until a work task signals the end of the spin-wait period. b) yield the thread by providing a hint to reschedule thread execution, thereby allowing other threads to run. c) yield the processor by informing it that it is waiting for work and requesting it to more efficiently use compute resources. More...

#include <PxDefaultCpuDispatcher.h>

Public Types

enum  Enum { eWAIT_FOR_WORK , eYIELD_THREAD , eYIELD_PROCESSOR }
 

Detailed Description

If a thread ends up waiting for work it will find itself in a spin-wait loop until work becomes available. Three strategies are available to limit wasted cycles. The strategies are as follows: a) wait until a work task signals the end of the spin-wait period. b) yield the thread by providing a hint to reschedule thread execution, thereby allowing other threads to run. c) yield the processor by informing it that it is waiting for work and requesting it to more efficiently use compute resources.


The documentation for this struct was generated from the following file: