Udostępnij za pośrednictwem


Context::Yield Method

Yields execution so that another context may execute. If no other context is available to yield to, the scheduler may yield to another operating system thread.

_CRTIMP static void __cdecl Yield();

Remarks

This method will result in the process' default scheduler being created and/or attached to the calling context if there is no scheduler currently associated with the calling context.

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

Context Class

Context::Block Method

Context::Unblock Method