Browse thread
Waiting for float time
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Robert Roessler <roessler@r...> |
| Subject: | Re: [Caml-list] Waiting for float time |
Yaron Minsky wrote: > On 6/27/07, *Robert Roessler* <roessler@rftp.com > <mailto:roessler@rftp.com>> wrote: > > sayan@crans.org <mailto:sayan@crans.org> wrote: > > I believe the OCaml idiom for this is to use Unix.select with empty > lists for all THREE of the descriptor lists... and this does work on > Windows. > > > Note, on Unix at least, you need to wrap the call to select in an > exception handler, since select can be interrupted, at which point the > call throws an exception. Thanks for the reminder - I am too familiar with OCaml's Windows version of Unix.select, which recognizes and special-cases the "sleep-only" use of select by transforming it into a non-alertable [Win32] Sleep() call. ;) Robert Roessler roessler@rftp.com http://www.rftp.com