This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
The eventLoop thread is a daemon
- From: Andrew Cagney <cagney at redhat dot com>
- To: frysk <frysk at sourceware dot org>
- Date: Mon, 16 Apr 2007 16:32:35 -0400
- Subject: The eventLoop thread is a daemon
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