Partager via


Context::Yield Method

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

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