in reply to Configuration in threaded app
My advice is to not mix signals and threads, anywhere.
Personally, I would structure the worker threads to fetch messages from a central job queue, configuring them at startup. When reconfiguration becomes necessary, I would purge the current job queue (and maybe put the still pending jobs in the fresh job queue) and tell all current worker threads to quit. Then I'd fire up new worker threads with a fresh configuration and a fresh job queue.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Configuration in threaded app
by Anonymous Monk on Aug 23, 2011 at 13:11 UTC | |
by Corion (Patriarch) on Aug 23, 2011 at 13:17 UTC |