Re: multithreading problem.

On Wed, 2002-06-05 at 14:02, Soeren Sandmann wrote:
> Paul Davis <pbd op net> writes:
> > >I guess I am going to give the second approach a try. A simple pipe
> > >should do the job but is there any message system in gtk/glib/gdk
> > >that should be used (user defined signals ?) ?
> > 
> > no, there isn't. 
> It is possible to use g_idle_add() to make the main thread do gdk/gtk
> calls. g_idle_add() does all the necessary locking itself so it
> doesn't have to be surrounded by any locking.

Yep, you're right this sounds like a great way of doing it, except that
"idle callbacks" are called to often. If you do so, you're going to poll
your CPU.

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