mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Fatal error in ~Thread if thread still running (undefined behavior)
This commit is contained in:
@@ -40,10 +40,7 @@ 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.
|
||||||
*/
|
*/
|
||||||
bassert (! isThreadRunning());
|
fatal_require (! isThreadRunning());
|
||||||
|
|
||||||
if (isThreadRunning())
|
|
||||||
FatalError ("Thread is still running", __FILE__, __LINE__);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user