Re: Gnome/Gtk and thread safety
- From: "Dan Maas" <dmaas dcine com>
- To: "Ryan C. Gordon" <icculus lokigames com>
- Cc: <gtk-devel-list gnome org>
- Subject: Re: Gnome/Gtk and thread safety
- Date: Tue, 17 Oct 2000 23:10:45 -0400
> Yes, it will happen. No, it's not a bad thing. Why not make sure GTK is
> robust enough to handle thread safety in the first place? This is twice as
> important when porting Windows applications to GTK...believe me, I've had
> my nightmares with this...you don't want to change the basic design of the
> app any more than you need to. Changing what threads are doing what is a
> BIG design change, and would be necessary to keep all GUI calls in one
> thread.
OK how about "threadsafe-gtk.h:"
#define gtk_init() LOCK_GTK() \
gtk_init() \
UNLOCK_GTK()
#define gtk_window_new() LOCK_GTK() \
gtk_window_new() \
UNLOCK_GTK()
and so on... Then look for places with too much contention and do your own
locking.
(what's that about "good code chasing after bad..." =)
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]