home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / languages / progs / shell / Sources / c / Poll < prev    next >
Encoding:
Text File  |  1994-05-31  |  485 b   |  25 lines

  1. #include <time.h>
  2.  
  3. #include "DeskLib:Event.h"
  4.  
  5. #include "Shell.Shell.h"
  6.  
  7.  
  8. /* these are used in the macro Shell_PollSlow(), defined in 'Shell.Shell.h' */
  9. clock_t    Shell_nextpolltime = 0;
  10. clock_t    Shell_pollinterval = 0;
  11.  
  12. BOOL    Shell_paused = FALSE;
  13.  
  14.  
  15. void    Shell_Poll( void)
  16. {
  17. /* This polls the wimp until a null event is received */
  18.  
  19. do    {
  20.     event_mask.data.null = 0;    /* make sure null events are returned */
  21.     Event_Poll();
  22.     }
  23.     while ( event_lastevent.type != event_NULL || Shell_paused);
  24. }
  25.