[PEAK] terminating PEAK application
Phillip J. Eby
pje at telecommunity.com
Sun Aug 1 19:17:29 EDT 2004
At 12:34 AM 8/2/04 +0300, Yaroslav Samchuk wrote:
>About executing of the _mainLoop.exitWith I can tell, that I have a
>strong feeling, that it works only if fired inside PEAK application's loop.
>For example, if I handle a TCP connection and I'm firing _mainLoop.exitWith(),
>while handling the connection, main loop is terminating, but when service is
>signaled to terminate, `exit with` is fired outside of the PEAK application
>loop and is not working.
Yes, if exitWith() is not called while the mainloop is running, it's not
going to terminate anything. For example, if you call it before starting
the mainloop, nothing will happen.
More information about the PEAK