Add Thread::stopThreadAsync

This commit is contained in:
Vinnie Falco
2013-09-30 09:28:31 -07:00
parent 4f7dca3e5a
commit a1ec423235
2 changed files with 16 additions and 0 deletions

View File

@@ -208,6 +208,17 @@ bool Thread::stopThread (const int timeOutMilliseconds)
return cleanExit;
}
void Thread::stopThreadAsync ()
{
const ScopedLock sl (startStopLock);
if (isThreadRunning())
{
signalThreadShouldExit();
notify();
}
}
//==============================================================================
bool Thread::setPriority (const int newPriority)
{