public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* The eventLoop thread is a daemon
@ 2007-04-16 20:33 Andrew Cagney
  0 siblings, 0 replies; only message in thread
From: Andrew Cagney @ 2007-04-16 20:33 UTC (permalink / raw)
  To: frysk

Just a heads up,

I've changed the event-loop thread to a daemon so that it can exit 
without needing a join (I found a test leaving many event-loop threads 
lying around), and equally the main program can exit without first 
having to wait for the event-loop thread to exit.

This did lead to one tweak.  Most of the command line utilities contained:

    main() {
       ....
       Manager.eventLoop.start();
    }

which relied on the main thread blocking waiting for the event-loop 
thread to exit.  Here, it is much easier to run the event-loop thread 
directly vis:

    main() {
       ....
       Manager.eventLoop.run();
    }

Andrew

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-16 20:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16 20:33 The eventLoop thread is a daemon Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).