From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 05921BC6B for ; Thu, 28 Jun 2007 12:27:23 +0200 (CEST) Received: from hades.snarc.org (hades.snarc.org [212.85.152.11]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5SARMVu025140 for ; Thu, 28 Jun 2007 12:27:22 +0200 Received: by hades.snarc.org (Postfix, from userid 1000) id 5E98D1B4D7; Thu, 28 Jun 2007 12:18:43 +0200 (CEST) Date: Thu, 28 Jun 2007 12:18:43 +0200 From: Vincent Hanquez To: sayan@crans.org Cc: Caml-list Subject: Re: [Caml-list] Waiting for float time Message-ID: <20070628101843.GA18053@snarc.org> References: <4682DCDF.5000301@crans.org> <4682E2D9.4050207@rftp.com> <46838A30.5060904@crans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46838A30.5060904@crans.org> X-Warning: Email may contain unsmilyfied humor and/or satire. User-Agent: Mutt/1.5.13 (2006-08-11) X-Miltered: at discorde with ID 46838D0A.003 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0200,:01 nanosleep:01 unices:01 28,:98 crans:98 wrote:01 unix:01 unix:01 caml-list:01 unsafe:01 binding:02 suggestion:03 module:03 float:03 library:03 On Thu, Jun 28, 2007 at 12:15:12PM +0200, sayan@crans.org wrote: > Thanks for the suggestion, I would never have thought of polling for > this. :) > > What about wrapping usleep or nanosleep ? These are probably not > portable, but are there obvious reasons not include them in the Unix > library ? you have answered the question yourself; the Unix module is unfortunately a lowest common part of what is available on lots of unices, and also without "unsafe" stuffs (mmap). That's why you have to do binding all the times when having specific low level requirements. -- Vincent Hanquez