Re: multi-threaded apps.
- From: Havoc Pennington <hp redhat com>
- To: Ian Campbell <ijc25 cam ac uk>
- Cc: gnome-devel-list gnome org
- Subject: Re: multi-threaded apps.
- Date: 21 Aug 2000 17:56:24 -0400
Ian Campbell <ijc25@cam.ac.uk> writes:
> Any clues/hints?
>
Just hold the lock around GTK calls:
gdk_threads_enter ();
gtk_foo ();
gtk_bar ();
gdk_threads_leave ();
my_own_app_function ();
gdk_threads_enter ();
gtk_blah ();
gdk_threads_leave ();
In a callback, you can just access the GUI since the lock is already
held, right?
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]