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 OAA12254; Fri, 27 Jun 2003 14:31:07 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 OAA12516 for ; Fri, 27 Jun 2003 14:31:06 +0200 (MET DST) Received: from f25.mail.ru (f25.mail.ru [194.67.57.151]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h5RCV5f20169 for ; Fri, 27 Jun 2003 14:31:05 +0200 (MET DST) Received: from [195.28.33.226] (port=4014 helo=SEVA) by f25.mail.ru with esmtp id 19VsNc-0006JI-00 for caml-list@inria.fr; Fri, 27 Jun 2003 16:31:04 +0400 From: "Fedorov Vsevolod" To: Subject: [Caml-list] enter/leave_blocking_section Date: Fri, 27 Jun 2003 16:30:43 +0400 Message-ID: <00a601c33ca7$ee1c4160$4e050505@SEVA> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal X-Spam: no; 0.00; camlparam:01 val:01 camlreturn:01 caml:01 blocking:01 int:01 app:04 installed:04 function:09 void:11 hello:15 headers:15 extensions:15 method:16 attach:16 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello! 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; } If yes, why are they not included in installed headers? If not, which method to use multi-threaded caml app with multi-threaded C extensions? In attach I included full sample. Seva ------------------- 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