mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fatal error if a Thread is destroyed while running
This commit is contained in:
@@ -40,7 +40,9 @@ Thread::~Thread()
|
|||||||
To avoid this type of nastiness, always make sure you call stopThread() before or during
|
To avoid this type of nastiness, always make sure you call stopThread() before or during
|
||||||
your subclass's destructor.
|
your subclass's destructor.
|
||||||
*/
|
*/
|
||||||
fatal_assert (! isThreadRunning());
|
check_precondition (! isThreadRunning());
|
||||||
|
|
||||||
|
stopThread ();
|
||||||
}
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user