home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / intrinsi / 688 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.windows.x.intrinsics
  2. Path: sparky!uunet!think.com!enterpoop.mit.edu!bloom-picayune.mit.edu!news
  3. From: ed.duomo@lambada.oit.unc.edu
  4. Subject: X-fiendly sleep?
  5. Message-ID: <1992Dec27.055353.7343@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: carbonara.mit.edu
  8. Organization: Massachvsetts Institvte of Technology
  9. Date: Sun, 27 Dec 1992 05:53:53 GMT
  10. Lines: 20
  11.  
  12. I'm wondering if there exists any such thing as an X-friendly sleep,
  13. i.e. sleep that would not grab the server. If I simply put sleep(2) in
  14. a callback, events cannot be handled by the intrinsics during that
  15. sleep, and if the window is exposed, it would not be updated until the
  16. program return from the sleep function call.
  17.  
  18. What I want is a funtion that when called from a certain location of
  19. the program with an argument of say 2 seconds, does not return from
  20. that location until 2 seconds have passed, but in contrast to
  21. sleep(2), those two seconds should not be spent idle, but in
  22. XtAppMainLoop so that events could be properly handled during that
  23. time. 
  24.  
  25. Any idea if something like this is available. If not, could it be
  26. implemented by timeouts? How?
  27.  
  28. Thanks.
  29.  
  30. E.D.
  31.  
  32.