Re: multi-threaded apps.




On Fri, 18 Aug 2000, James Henstridge wrote:

> 
> On Fri, 18 Aug 2000, Ian Campbell wrote:
> 
> > > Well, the gtk_signal_emit function is a gtk function, so you should grab
> > > the lock before calling it.  So if you want to emit a signal from an idle
> > > or timeout function, you will need to do GDK_THREADS_ENTER() and
> > > GDK_THREADS_LEAVE() around the gtk calls.
> > > 
> > 
> > Thats exactly what I wanted to know... Thank you... For some reason I
> > wasn't considering gtk_signa_emit to be a  a gtk function. Duh!
> > 
> > I expect I should use the lowercase variants though ?
> 
> Well, the lowercase versions are just functions that call the upper case
> macros.  I don't know what the policy is on which set you should use.  It
> would be better to ask that on a gtk list.
> 

I got the impression that you should use the uppercase ones within GTK
(for performance) and the lowercase one in apss, so that a build-time
config mistake in your app doesn't cause things to go wrong, because the
lowercase versions are correct for how GTK+ was built.


> James.
> 
> 
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
> 






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