Yield

2.x

  void Yield(void)    

The Yield function stops the current task and starts any waiting task.

Parameters

This function has no parameters.

Return Value

This function does not return a value.

Comments

Use the Yield function only when the application will not receive any messages.

Applications that contain windows should use a DispatchMessage, PeekMessage, or TranslateMessage loop rather than call the Yield function directly. The message-loop functions handle message synchronization properly and yield at the appropriate times.

See Also

DispatchMessage, PeekMessage, TranslateMessage