Changing semantics of thread stop methods.

PrepareStop() is now SignalStop() and just signals a thread that it
should terminate. After that's called, WaitForStop() (formerly Stop())
wait for it to actually finish processing.

When stopping writers during operation, we now no longer wait for them
to finish.
This commit is contained in:
Robin Sommer 2013-03-15 17:54:20 -07:00
parent 38e1dc9ca4
commit d11bd56b5d
6 changed files with 45 additions and 44 deletions

View file

@ -228,8 +228,8 @@ protected:
*
*/
virtual void Run();
virtual void OnStop();
virtual void OnPrepareStop();
virtual void OnWaitForStop();
virtual void OnSignalStop();
virtual void OnKill();
private: