Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <wdefwin.h>
    int _dwYield( void );

Description:
    The _dwYield function yields control back to the operating system,
    thereby giving other processes a chance to run.

    The _dwYield function is one of the support functions that can be called
    from an application using Watcom's default windowing support.

Returns:
    The _dwYield function returns 1 if it was successful and 0 if not.

Example:
    #include <wdefwin.h>
    #include <stdio.h>

    void main()
      {
        int i;

        for( i = 0; i < 1000; i++ ) {
          /* give other processes a chance to run */
          _dwYield();
          /* do CPU-intensive calculation */
          /*  .  */
          /*  .  */
          /*  .  */
        }
      }

Classification:
    WATCOM

Systems:
    Windows, Win386, Win32, OS/2-32

See Also:
    _dwDeleteOnClose, _dwSetAboutDlg, _dwSetAppTitle, _dwSetConTitle,
    _dwShutDown

See Also: _dwDeleteOnClose _dwSetAboutDlg

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson