Skip to content

Latest commit

 

History

History
71 lines (56 loc) · 1.78 KB

nf-winnt-yieldprocessor.md

File metadata and controls

71 lines (56 loc) · 1.78 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winnt.YieldProcessor
YieldProcessor function (winnt.h)
Signals to the processor to give resources to threads that are waiting for them.
YieldProcessor
YieldProcessor function
base.yieldprocessor
winnt/YieldProcessor
base\yieldprocessor.htm
backup
83a331c1-cfc6-427d-aa80-9583db02ee92
12/05/2018
YieldProcessor, YieldProcessor function, base.yieldprocessor, winnt/YieldProcessor
winnt.h
Windows.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2003 [desktop apps \| UWP apps]
Windows
19H1
YieldProcessor
winnt/YieldProcessor
c++
APIRef
kbSyntax
HeaderDef
Winnt.h
YieldProcessor

YieldProcessor function

-description

Signals to the processor to give resources to threads that are waiting for them. This macro is only effective on processors that support technology allowing multiple threads running on a single processor, such as Intel's Hyperthreading technology.

-remarks

This macro can be called on all processor platforms where Windows is supported, but it has no effect on some platforms. The definition varies from platform to platform. The following are some definitions of this macro in Winnt.h:

#define YieldProcessor() __asm { rep nop }

#define YieldProcessor _mm_pause

#define YieldProcessor __yield