From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id EF8F2BB91 for ; Mon, 24 Jan 2005 02:56:30 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0O1uUMC027494 for ; Mon, 24 Jan 2005 02:56:30 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA15548 for ; Mon, 24 Jan 2005 02:56:29 +0100 (MET) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0O1uSc5027489 for ; Mon, 24 Jan 2005 02:56:29 +0100 Received: by wproxy.gmail.com with SMTP id 58so192806wri for ; Sun, 23 Jan 2005 17:56:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=UZo4oWSlzcM4+tVDPd4RVz/zSfQSXVYa/Vb0db7T1neNB03K0C/FZjwqKMNb96LxZm6Vh/9mvKMOQJDLsA6KOI2Nix3tO6BNW31QaMbYbg4xDy6QATQrWXpOIJ28qIq7BMxzLahF1BXpx0w9DULRtms2x85OAArHnwaZItoMijo= Received: by 10.54.29.4 with SMTP id c4mr216273wrc; Sun, 23 Jan 2005 17:56:28 -0800 (PST) Received: by 10.54.2.70 with HTTP; Sun, 23 Jan 2005 17:56:28 -0800 (PST) Message-ID: <891bd339050123175618dc6acc@mail.gmail.com> Date: Sun, 23 Jan 2005 20:56:28 -0500 From: Yaron Minsky Reply-To: yminsky@cs.cornell.edu To: SooHyoung Oh Subject: Re: [Caml-list] Timeouts in Event module Cc: Caml Mailing List In-Reply-To: <41F44701.4040500@compiler.kaist.ac.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <891bd33905012305496c96b6d6@mail.gmail.com> <41F44701.4040500@compiler.kaist.ac.kr> X-Miltered: at nez-perce with ID 41F455CE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41F455CC.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; yaron:01 minsky:01 yminsky:01 caml-list:01 simulate:01 compiler:01 wrote:01 ocaml:01 libs:01 yaron:01 minsky:01 ocaml's:01 caml-list:01 beginner's:01 ocaml:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.0 X-Spam-Level: Thanks. That looks quite useful. I suppose one could create a timed event by creating a channel and scheduling a callback to send on that channel. It seems like a bit of a hack (not your library, but the need to use such a mechanism to simulate timeouts), but it should do the job. y On Mon, 24 Jan 2005 09:53:21 +0900, SooHyoung Oh wrote: >=20 > I implemented a timer library. > Look http://pllab.kaist.ac.kr/~shoh/ocaml/libs/timer/ > This library uses Sys module and unix, thread library. >=20 > Yaron Minsky =EC=93=B4 =EA=B8=80: >=20 > >Does anyone know of a way of achieving timeouts using OCaml's Event > >module? Reppy's Concrrent ML has timeout and attime events which > >cover for that need. I'm wondering if there is some other way of > >implementing this using Event, or if this is just a missing feature. > > > >Thanks, > >Yaron > > > >_______________________________________________ > >Caml-list mailing list. Subscription management: > >http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > >Archives: http://caml.inria.fr > >Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > >Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > > > >