From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id F197EBB83 for ; Fri, 12 May 2006 18:06:40 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k4CG6eVC017687 for ; Fri, 12 May 2006 18:06:40 +0200 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 SAA26843 for ; Fri, 12 May 2006 18:06:39 +0200 (MET DST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k4CG6cRG031324 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 12 May 2006 18:06:39 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fea9i-0007pm-IW for caml-list@inria.fr; Fri, 12 May 2006 18:06:18 +0200 Received: from host44-143.pool8253.interbusiness.it ([82.53.143.44]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 May 2006 18:06:18 +0200 Received: from vincenzo_yahoo_addressguard-gmane by host44-143.pool8253.interbusiness.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 May 2006 18:06:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Vincenzo Ciancia Subject: Re: Co-existing with non OCaml threads Date: Fri, 12 May 2006 18:10:29 +0200 Message-ID: References: <1147432929.19900.18.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: host44-143.pool8253.interbusiness.it User-Agent: KNode/0.10.2 Sender: news X-Miltered: at concorde with ID 4464B290.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4464B28E.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 threads:01 gerd:01 stolpmann:01 o'caml:01 threads:01 o'caml:01 segfault:01 ocaml:01 attenzione:98 l'indirizzo:98 posta:98 nel:98 campo:98 wrote:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Gerd Stolpmann wrote: > - O'Caml must never see threads not created by itself. This > means a thread created by your middleware must not run > O'Caml code. (You get immediately a segfault if you try.) > However, let's make it clearer, you can create a thread in ocaml and then call a C function, and this C function, which will be run concurrently with other C functions called the same way, can call back ocaml. Vincenzo -- Please note that I do not read the e-mail address used in the from field but I read vincenzo_ml at yahoo dot it Attenzione: non leggo l'indirizzo di posta usato nel campo from, ma leggo vincenzo_ml at yahoo dot it