Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: [Caml-list] windows + gtk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: RE: [Caml-list] windows + gtk
From: "Croy, Stuart" <Stuart.Croy@gs.com>

> Is this binary GTK distribution going to include working threads under
> Windows? If so, is that with cygwin or MSVC?
> Yes, impatient, I know, but I'm about ready to get the debugger out on the
> 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