caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Robert Roessler <roessler@rftp.com>
To: Caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Waiting for float time
Date: Fri, 29 Jun 2007 03:17:51 -0700	[thread overview]
Message-ID: <4684DC4F.8030208@rftp.com> (raw)
In-Reply-To: <891bd3390706280433u7b9c0ed6me56e8a6474c17310@mail.gmail.com>

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


  reply	other threads:[~2007-06-29 10:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-27 21:55 sayan
2007-06-27 22:11 ` [Caml-list] " Karl Zilles
2007-06-28 11:15   ` Matthieu Dubuget
2007-06-28 15:03     ` Bruno Verlyck, Bruno.Verlyck
2007-06-28 15:29       ` Matthieu Dubuget
2007-06-28 15:57         ` Bruno Verlyck, Bruno.Verlyck
2007-06-27 22:21 ` Robert Roessler
2007-06-28 10:15   ` sayan
2007-06-28 10:18     ` Vincent Hanquez
2007-06-28 11:18       ` Bünzli Daniel
2007-06-28 11:33   ` Yaron Minsky
2007-06-29 10:17     ` Robert Roessler [this message]
2007-06-28 12:50 ` Thomas Fischbacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4684DC4F.8030208@rftp.com \
    --to=roessler@rftp.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).