home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.intrinsics
- Path: sparky!uunet!think.com!enterpoop.mit.edu!bloom-picayune.mit.edu!news
- From: ed.duomo@lambada.oit.unc.edu
- Subject: X-fiendly sleep?
- Message-ID: <1992Dec27.055353.7343@athena.mit.edu>
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: carbonara.mit.edu
- Organization: Massachvsetts Institvte of Technology
- Date: Sun, 27 Dec 1992 05:53:53 GMT
- Lines: 20
-
- I'm wondering if there exists any such thing as an X-friendly sleep,
- i.e. sleep that would not grab the server. If I simply put sleep(2) in
- a callback, events cannot be handled by the intrinsics during that
- sleep, and if the window is exposed, it would not be updated until the
- program return from the sleep function call.
-
- What I want is a funtion that when called from a certain location of
- the program with an argument of say 2 seconds, does not return from
- that location until 2 seconds have passed, but in contrast to
- sleep(2), those two seconds should not be spent idle, but in
- XtAppMainLoop so that events could be properly handled during that
- time.
-
- Any idea if something like this is available. If not, could it be
- implemented by timeouts? How?
-
- Thanks.
-
- E.D.
-
-