From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA29255 for caml-redistribution; Wed, 17 Mar 1999 22:04:22 +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 SAA30763 for ; Wed, 17 Mar 1999 18:10:37 +0100 (MET) Received: from postbox.dai.ed.ac.uk (postbox.dai.ed.ac.uk [129.215.41.196]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id SAA20224 for ; Wed, 17 Mar 1999 18:10:36 +0100 (MET) Received: from toy.william.bogus (williamc@dialup-107.publab.ed.ac.uk [129.215.38.107]) by postbox.dai.ed.ac.uk (8.8.7/8.8.7) with ESMTP id RAA19064; Wed, 17 Mar 1999 17:10:34 GMT Received: (from williamc@localhost) by toy.william.bogus (8.8.7/8.8.7) id PAA06380; Wed, 17 Mar 1999 15:57:30 GMT Date: Wed, 17 Mar 1999 15:57:30 GMT Message-Id: <199903171557.PAA06380@toy.william.bogus> From: William Chesters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Don Syme Cc: caml-list@inria.fr Subject: RE: threads & OCamlTK In-Reply-To: <39ADCF833E74D111A2D700805F1951EF0F00BA7A@RED-MSG-06> References: <39ADCF833E74D111A2D700805F1951EF0F00BA7A@RED-MSG-06> X-Mailer: VM 6.34 under Emacs 20.2.1 Sender: weis Don Syme writes: > William Chesters writes: > > > > And, on a vaguely related topic, is it possible to use threads with > > > programs that also use OCamlTK? I know Tk is not threadsafe, but if > > > only one thread is calling Tk functions, then perhaps it's still OK? > > > No, `Tk.mainLoop' blocks the whole process. > > Hmm... it seems not to, under Windows NT/bytecode. Maybe this is because > Tk.mainLoop gets linked against a non-blocking library of code under > Windows. Aha, it works for me too under Linux with native code/pthreads. I still have the test program from months ago which supposedly demonstrated the opposite ... and it works too! Oh well :-). Probably wrong link options or something.