[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] [Windows] gnunet-gtk

From: Tim Müller
Subject: Re: [GNUnet-developers] [Windows] gnunet-gtk
Date: Mon, 15 Mar 2004 14:11:00 +0000
User-agent: KMail/1.6.1

On Monday 15 March 2004 12:01, N. Durner wrote:

> > > This is because GTK doesn't behave well with multi-threaded
> > > applications.
> >
> > Specifically under Windows or in general?
> No, it's a Windows specific problem.

How so?  GTK is not thread-safe, on any platform. If you want to access 
GTK/GDK functions from multiple threads, you'll have to do the locking 
yourself (see the Gtk+ FAQ). Both in Windows and *nix. If there are problems 
that don't show up under Linux but show up under Windows, then that's pure 
luck, and the problems will eventually show up on other platforms as well in 
form of spurious crashes etc.

GLib on the other hand is thread-safe, that's why hooking up a GLib main loop 
idle handler solves the problem (because even if you hook it up in thread B, 
it will be executed in the 'main thread').


reply via email to

[Prev in Thread] Current Thread [Next in Thread]