mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Generate a fatal error if a running Thread object is destroyed
This commit is contained in:
@@ -42,7 +42,8 @@ Thread::~Thread()
|
||||
*/
|
||||
bassert (! isThreadRunning());
|
||||
|
||||
stopThread (100);
|
||||
if (isThreadRunning())
|
||||
FatalError ("Thread is still running", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user