Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Waiting for float time
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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* < 
> <>> wrote:
> <> wrote:
>     I believe the OCaml idiom for this is to use 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, which recognizes and special-cases the 
"sleep-only" use of select by transforming it into a non-alertable 
[Win32] Sleep() call. ;)

Robert Roessler