in reply to Re^2: How do I cleanly kill a spawned process on Win32.
in thread How do I cleanly kill a spawned process on Win32.
I agree that, all things considered, an Event will be the most appropriate way to handle this.
In my experience, “murder is always messy.” :-D More to the point, “it's never exactly the same way twice.” So, it's very difficult to test.
You might have one thread in the application that does nothing but wait for the closing whistle. It starts-up the app, waits for the whistle, quickly notifies the workers, waits briefly for them to respond, and then closes down the app as neatly as it can manage.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How do I cleanly kill a spawned process on Win32.
by BrowserUk (Patriarch) on Feb 27, 2009 at 01:59 UTC |