This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]