From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA15840 for caml-redistribution; Thu, 25 Mar 1999 14:09:41 +0100 (MET) 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 XAA16349 for ; Wed, 24 Mar 1999 23:08:08 +0100 (MET) Received: from mail5.svr.pol.co.uk (mail5.svr.pol.co.uk [195.92.193.20]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id XAA23630; Wed, 24 Mar 1999 23:08:06 +0100 (MET) Received: from modem-51.dysprosium.dialup.pol.co.uk ([62.136.32.179] helo=toy.william.bogus) by mail5.svr.pol.co.uk with esmtp (Exim 2.12 #1) id 10Pvod-0002BD-00; Wed, 24 Mar 1999 22:08:00 +0000 Received: (from williamc@localhost) by toy.william.bogus (8.8.7/8.8.7) id RAA08259; Wed, 24 Mar 1999 17:27:19 GMT Date: Wed, 24 Mar 1999 17:27:19 GMT Message-Id: <199903241727.RAA08259@toy.william.bogus> From: William Chesters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: caml-list@inria.fr Cc: Jerome Vouillon Subject: Re: threads & OCamlTK In-Reply-To: <19990323160729.18130@pauillac.inria.fr> References: <39ADCF833E74D111A2D700805F1951EF0F00BA6B@RED-MSG-06> <199903221839.NAA20107@saul.cis.upenn.edu> <19990323160729.18130@pauillac.inria.fr> X-Mailer: VM 6.34 under Emacs 20.2.1 Sender: weis Jerome Vouillon writes: > There is a mutex that prevents two Caml threads from running > simultaneously. I think what happens is that the Tk main loop > blocks while still holding the mutex. > You should try to release the mutex before entering this loop, and > acquire it again before each call to a Caml function. For instance, > in file cltkEvents.c: > ... Nice idea, but it it didn't work for me, so there must be something else wrong ...