Export (0) Print
Expand All
Expand Minimize


Microsoft Specific

Generates the Performance Hint 0 (hint 0) instruction.

void __yield(void);

Intrinsic Architecture



Header file <intrin.h>

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.

END Microsoft Specific

Community Additions

© 2015 Microsoft