We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 864c2fa commit 88f5375Copy full SHA for 88f5375
modules/eventx/thread_pool.cpp
@@ -369,6 +369,8 @@ void ThreadPool::threadProc(ThreadToken thread_token)
369
370
if (let_main_loop_join_me) {
371
//! 则将线程取出来,交给main_loop去join(),然后delete
372
+ std::unique_lock<std::mutex> lk(d_->lock);
373
+
374
auto t = d_->threads_cabinet.free(thread_token);
375
TBOX_ASSERT(t != nullptr);
376
d_->wp_loop->runInLoop(
0 commit comments