Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2002-07-25 (15:11)
From: Jacques Garrigue <garrigue@k...>
Subject: RE: [Caml-list] windows + gtk
From: "Croy, Stuart" <>

> 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 Archives:
Bug reports: FAQ:
Beginner's list: