__yield
Microsoft Specific
Generates the Performance Hint 0 (hint 0) instruction.
void __yield(void);
Requirements
Intrinsic | Architecture |
---|---|
__yield |
IPF |
Header file <intrin.h>
Remarks
The hint tells the processor that this thread is not doing anything useful, so it can freely yield processing time to another thread. For example, it can be used in a loop attempting to acquire a spin lock to reduce processor cycles wasted while waiting to acquire the lock.
This intrinsic is similar to the __mm_pause intrinsic. The routine is only available as an intrinsic.