mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 02:18:39 +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;
|
Event stopped;
|
||||||
static thread_local IThreadPoolReceiver* threadUserObject;
|
static thread_local IThreadPoolReceiver* threadUserObject;
|
||||||
explicit Thread(ThreadPool *pool, IThreadPoolReceiver *userObject) : pool(pool), userObject(userObject) {}
|
explicit Thread(ThreadPool *pool, IThreadPoolReceiver *userObject) : pool(pool), userObject(userObject) {}
|
||||||
~Thread() { ASSERT(!userObject); }
|
~Thread() { ASSERT_ABORT(!userObject); }
|
||||||
|
|
||||||
void run() {
|
void run() {
|
||||||
deprioritizeThread();
|
deprioritizeThread();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user