Yield

Syntax

void Yield( )

This function halts the current task and starts any waiting task.

This function has no parameters.

Return Value

None.

Comments

Applications that contain windows should use a DispatchMessage, PeekMessage, or TranslateMessage loop rather than calling the Yield function directly. The PeekMessage loop handles message synchronization properly and yields at the appropriate times.