PxDefaultCpuDispatcherWaitForWorkMode
Defined in include/extensions/PxDefaultCpuDispatcher.h
-
struct PxDefaultCpuDispatcherWaitForWorkMode
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.