Use ASSERT_ABORT in destructor

This commit is contained in:
Dennis Schafroth 2018-04-23 12:37:27 +02:00 committed by Bhaskar Muppana
parent a9f54e1865
commit dcc2c92ba1

View File

@ -35,7 +35,7 @@ class ThreadPool : public IThreadPool, public ReferenceCounted<ThreadPool> {
Event stopped;
static thread_local IThreadPoolReceiver* threadUserObject;
explicit Thread(ThreadPool *pool, IThreadPoolReceiver *userObject) : pool(pool), userObject(userObject) {}
~Thread() { ASSERT(!userObject); }
~Thread() { ASSERT_ABORT(!userObject); }
void run() {
deprioritizeThread();