RE: [gtk-list] Re: XInitThreads causing problems to GTK windows.
- From: "Peter Wilson" <peter stubble force9 co uk>
- To: <gtk-list redhat com>
- Subject: RE: [gtk-list] Re: XInitThreads causing problems to GTK windows.
- Date: Thu, 15 Jul 1999 23:02:50 +0100
> > So, every time
> > the worker thread wants to GUI to be updated somehow, it might post a
> > message into the main thread's message queue (does each thread have a
> > separate message queue, like in Win32? I don't think so..).
>
> There aren't message queue, unless you program them. They would have to be
> prepared to take all actions, that a worker thread might issue. If those
> actions are only a few (update a progress bar and such) it is
> quite easy, but
> if the worker thread wants yo use much of the gtk-API it is
> easier the other
> way.
Yes Olaf - that's exactly right. If the second thread makes it's own
connection to the X server then it will have it's own event queue - in fact
pretty much everything will be seperate with the possible exception of
error-handlers; this could easily be overridden as I think if GDK gets an
error it just says so and bombs out.
Cheers for now,
Chris Wilson.
cdw22@cam.ac.uk
Magdalene College, Cambridge.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]