[571] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: Best place to add -D_REENTRANT to build

daemon@ATHENA.MIT.EDU (Rob Browning)
Tue Jul 29 16:34:23 1997

To: gtk-list@redhat.com
From: Rob Browning <rlb@cs.utexas.edu>
Date: 29 Jul 1997 15:42:36 -0500
In-Reply-To: owt1@cornell.edu's message of "Tue, 29 Jul 1997 16:08:21 -0400 (EDT)"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

owt1@cornell.edu writes:

> Also, it probably isn't necessary to initialize X to be thread safe -
> since gtk isn't thread safe anyways.

Right, but I figured it fell into the couldn't hurt, might help
category -- planning for the future...

Say I have a big mutex around all the gtk stuff so that I can
guarantee that if I hold that mutex, no one else is inside gtk.  Then
if X has been initialized properly and is thread safe, I can go ahead
and make a bunch of X calls from multiple threads (say to update
several video streams on several displays), and then release the mutex
and let gtk go about its business again.

-- 
Rob

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post