Re: GTK and threads
- From: Paul Davis <paul linuxaudiosystems com>
- To: Bernhard Jung <bernhard bernhardjung de>
- Cc: gtk-list gnome org
- Subject: Re: GTK and threads
- Date: Tue, 29 Jul 2008 10:48:14 -0400
On Tue, 2008-07-29 at 16:00 +0200, Bernhard Jung wrote:
> Is this behavior normal to GTK+? I know in Java/Swing and .NET/Windows Forms
> manipulation of GUI widgets has to be done in a special thread. Is there a
> similar concept in GTK+? Or maybe something is wrong with my code?
You have 2 choices in GTK:
a) only do GTK/GDK/backend operations in a single thread, with the
exception of calling g_idle_add()
b) use GDK thread locking primitives around every
GTK/GDK/backend operation, in every thread
Most people have found that (a) is preferable to (b).
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]