<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/07/588af70a74c1d95714ab70eda7e66ae3"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2002-07-25T15:11:04"
  subject="RE: [Caml-list] windows + gtk"
  prev="2002/07/1b763a0b53af91c54f488c8dd7c4ed9a"
  next="2002/07/d6bc1239416d9406526c4316fca55084"
  prev-in-thread="2002/07/bdeb884d93792a060ffeac29121adb78"
  next-in-thread="2002/08/7bb09d80acfd4a30877364a1bd37df6d"
  prev-thread="2002/07/c9d3f0e73f8c6335d98372a9ec715ebb"
  next-thread="2002/07/23b94851b6de87ec4685ec6f3ce9b873"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="RE: [Caml-list] windows + gtk">
<msg 
  url="2002/07/bdeb884d93792a060ffeac29121adb78"
  from="Croy, Stuart &lt;Stuart.Croy@g...&gt;"
  author="Croy, Stuart"
  date="2002-07-25T06:15:07"
  subject="RE: [Caml-list] windows + gtk">
<msg 
  url="2002/07/588af70a74c1d95714ab70eda7e66ae3"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2002-07-25T15:11:04"
  subject="RE: [Caml-list] windows + gtk">
<msg 
  url="2002/08/7bb09d80acfd4a30877364a1bd37df6d"
  from="Kontra, Gergely &lt;kgergely@m...&gt;"
  author="Kontra, Gergely"
  date="2002-08-02T16:29:34"
  subject="[Caml-list] windows + gtk (mingw compilation)">
</msg>
</msg>
</msg>
</thread>

<contents>
From: "Croy, Stuart" &lt;Stuart.Croy@gs.com&gt;

&gt; Is this binary GTK distribution going to include working threads under
&gt; Windows? If so, is that with cygwin or MSVC?
&gt; Yes, impatient, I know, but I'm about ready to get the debugger out on the
&gt; current version... Looking forward to 3.05. Keep up the good work, guys.

Good question. I hadn't really checked, and expected msvc threads
to somehow work. However, it seems that while you can write threaded
applications using lablgtk, you cannot call gtk functions from other
threads (this deadlocks). My intuition is that the windows version of
gtk enables internal mutexes by default, which is not the case for the
unix version. But I didn't check, and I'm not sure I will be able to
solve that before the next version of lablgtk.
You can still do as ocamlbrowser: use threads, but keep everything UI
related in the main thread (i.e., use GtkThread.main as main loop, but
not GtkThread.start). A bit painful, but it works.

For cygwin, I believe ocaml itself doesn't support threads on that
platform. Am I wrong ?

          Jacques Garrigue
-------------------
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

</contents>

</message>

