Generate a fatal error if a running Thread object is destroyed

This commit is contained in:
Vinnie Falco
2013-08-02 08:31:07 -07:00
parent 03baeccda5
commit 66b96b90d5
3 changed files with 3 additions and 7 deletions

View File

@@ -42,7 +42,8 @@ Thread::~Thread()
*/
bassert (! isThreadRunning());
stopThread (100);
if (isThreadRunning())
FatalError ("Thread is still running", __FILE__, __LINE__);
}
//==============================================================================