RE: threads & OCamlTK

From: William Chesters (williamc@dai.ed.ac.uk)
Date: Wed Mar 17 1999 - 16:57:30 MET


Date: Wed, 17 Mar 1999 15:57:30 GMT
Message-Id: <199903171557.PAA06380@toy.william.bogus>
From: William Chesters <williamc@dai.ed.ac.uk>
To: Don Syme <dsyme@microsoft.com>
Subject: RE: threads & OCamlTK
In-Reply-To: <39ADCF833E74D111A2D700805F1951EF0F00BA7A@RED-MSG-06>

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.



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:21 MET