Per Mausklick bewerten und Feedback geben
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual C++
Visual C++-Referenz
C/C++ Languages
Compiler Intrinsics
 __yield
Visual C++ Language Reference
__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.

Community Content   Was ist Community Content?
Neuen Inhalt hinzufügen RSS  Anmerkungen
Processing
Page view tracker