Commit fe1bad05 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[ADD] - stop notification added

parent 09c52185
......@@ -50,6 +50,7 @@ void WThreadedRunner::wait( bool requestFinish )
if( requestFinish )
{
m_FinishRequested = requestFinish;
notifyStop();
}
m_Thread->join();
}
......@@ -58,6 +59,10 @@ void WThreadedRunner::threadMain()
{
}
void WThreadedRunner::notifyStop()
{
}
void WThreadedRunner::yield() const
{
m_Thread->yield();
......
......@@ -64,6 +64,11 @@ protected:
*/
virtual void threadMain();
/**
* Gets called when the thread should be stopped.
*/
virtual void notifyStop();
/**
* Thread instance.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment