mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 01:42:37 +08:00
Use ASSERT_ABORT in destructor
This commit is contained in:
parent
a9f54e1865
commit
dcc2c92ba1
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user