Re: Multi-threaded GTK+



Tor Lillqvist <tml iki fi> writes:

> Soeren Sandmann writes:
>  > So, what about
>  > 
>  >         g_idle_add (VERY_HIGH_PRIORITY, do_window_procedure());
>  >         g_main_iteration();
> 
> I don't see how that (or something like it) would help. Or do you mean
> that each thread would automatically have some function added with
> g_idle_add, that would check for messages for *that* thread? But an
> app-created thread doesn't necessarily run any event loop, so when
> would that function get called?

No, you are right, but what if all gdk_window_new() calls were done by
the main thread?


Søren



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