The thread runs
To completion, or
Until its killed
Waits to be killed (if it has run to completion)
Deletes the Active Object
unsigned __stdcall ActiveObject::
// active is deleted here after the worker thread is done
Active Object is held inside an auto_ptr, to insure its deletion.
Notice the wait for external kill command.