Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

__yield

Microsoft Specific

Generates the Performance Hint 0 (hint 0) instruction.


void __yield(void);

Intrinsic Architecture

__yield

IPF

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

ADD
Show:
© 2015 Microsoft