[Evolution-hackers] Re: bonobo_main thread ...
- From: Michael Meeks <michael ximian com>
- To: Chris Toshok <toshok ximian com>
- Cc: evolution <evolution-hackers ximian com>
- Subject: [Evolution-hackers] Re: bonobo_main thread ...
- Date: Thu, 05 Feb 2004 10:03:52 +0000
Hi Chris,
On Wed, 2004-02-04 at 08:00 -0800, Chris Toshok wrote:
> The extra mainloop thread makes programs that don't use the async api
> possible, when they don't have another thread running a mainloop.
Hmm; ok - but I'd avoid using bonobo_main - instead run the default
mainloop yourself - inasmuch that that loop is intended for the 'main'
thread to run really - and a number of exit conditions are slaved to it
- and I'm not certain that they'll still work well if it's run
elsewhere.
> We still need a mainloop running somewhere, and (trusting glib's thread
> safety when it comes to multiple mainloops running on the same context),
> it's safe if you don't care on which thread your GSource callbacks are
> executed (which ebook doesn't).
Right; of course - this whole thing sucks; in an ideal world CORBA's
event-loop / event processing API wouldn't blow great chunks - but ... I
guess this is good enough for now if you don't want to have a set of
synchronous methods that implement the behavior too.
Regards,
Michael.
--
michael ximian com <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]