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/C++ v10.0 : C library - <b>synopsis:</b> 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.

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

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

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:
    Win, OS/2 2.x, NT

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