From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA00207; Tue, 1 Jul 2003 09:53:58 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA00717 for ; Tue, 1 Jul 2003 09:53:57 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h617rtj03505; Tue, 1 Jul 2003 09:53:55 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA00788; Tue, 1 Jul 2003 09:53:55 +0200 (MET DST) Date: Tue, 1 Jul 2003 09:53:55 +0200 From: Xavier Leroy To: Fedorov Vsevolod Cc: caml-list@inria.fr Subject: Re: [Caml-list] enter/leave_blocking_section Message-ID: <20030701095355.A32029@pauillac.inria.fr> References: <00a601c33ca7$ee1c4160$4e050505@SEVA> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <00a601c33ca7$ee1c4160$4e050505@SEVA>; from sevaAtWork@mail.ru on Fri, Jun 27, 2003 at 04:30:43PM +0400 X-Spam: no; 0.00; caml-list:01 camlparam:01 val:01 camlreturn:01 oversight:01 caml:01 blocking:01 int:01 installed:04 signals:08 function:09 declares:10 void:11 leroy:12 xavier:13 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Is it safe to use enter_blocking_section() and leave_blocking_section() > calls from my C function like this: > > void testSleep( value timev ) > { > CAMLparam1(timev); > int time = Int_val(timev); > enter_blocking_section(); > sleep(time); > leave_blocking_section(); > CAMLreturn0; > } Yes, that's the intended usage. > If yes, why are they not included in installed headers? Oversight. The development version now installs that declares {enter,leave}_blocking_section. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners