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 MAA08921; Tue, 1 Jul 2003 12:19:03 +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 MAA08909 for ; Tue, 1 Jul 2003 12:19:02 +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 h61AJ1f24171 for ; Tue, 1 Jul 2003 12:19:01 +0200 (MET DST) Received: from [195.28.33.226] (port=2791 helo=SEVA) by f25.mail.ru with esmtp id 19XIE0-000Nxl-00 for caml-list@inria.fr; Tue, 01 Jul 2003 14:19:00 +0400 From: "Vsevolod Fedorov" To: Subject: [Caml-list] external threads Date: Tue, 1 Jul 2003 14:18:39 +0400 Message-ID: <001401c33fba$2478a860$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 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam: no; 0.00; threads:01 descriptor:01 posix:01 python:01 api:01 ocaml:01 caml:01 thread:02 external:03 corba:03 variable:03 functions:05 uses:06 difficult:07 inside:10 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello. One more question about ocaml extensions and threads. It looks like it is impossible to call ocaml functions from 'external' thread - thread created from C, by pthread_create. So it is difficult, for example, use ocaml to serve CORBA calls. Caml uses curr_thread global variable and pthread_setspecific(thread_descriptor_key, ...) available only inside posix.c Is there some solution? Python, for example, provides special API to set up external threads. 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