From e4de261b67063fd58c3af2ea16ce3fbb1fe588d0 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Tue, 23 May 2023 09:28:19 +0000 Subject: [PATCH] add missing BAIDU_GET_VOLATILE_THREAD_LOCAL in task_group.cpp --- src/bthread/task_group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bthread/task_group.cpp b/src/bthread/task_group.cpp index 469e1b0b8d..cbae7c5bfa 100644 --- a/src/bthread/task_group.cpp +++ b/src/bthread/task_group.cpp @@ -258,7 +258,7 @@ void TaskGroup::task_runner(intptr_t skip_remained) { RemainedFn fn = g->_last_context_remained; g->_last_context_remained = NULL; fn(g->_last_context_remained_arg); - g = tls_task_group; + g = BAIDU_GET_VOLATILE_THREAD_LOCAL(tls_task_group); } #ifndef NDEBUG