home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / jove414s.zip / threads.c < prev    next >
C/C++ Source or Header  |  1991-07-06  |  454b  |  19 lines

  1. /* contains OS/2 threads for xjove */
  2. #define INCL_BASE
  3. #include <os2.h>
  4.  
  5. /*************************************************/
  6. void screen_thread (void)
  7. /*************************************************/
  8. /* A thread for updating the screen every UPD_INTERVAL */
  9. /* milliseconds */
  10. #define UPD_INTERVAL 100L
  11. {
  12.     while (1) {
  13.         DosSleep (UPD_INTERVAL);
  14.         DosEnterCritSec ();
  15.         VioShowBuf (0, 2000, 0);
  16.         DosExitCritSec ();
  17.     }
  18. }
  19.