Skip to content

Commit

Permalink
add missing BAIDU_GET_VOLATILE_THREAD_LOCAL in task_group.cpp (#2262)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimChengLin authored May 23, 2023
1 parent d5327f6 commit 816484d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bthread/task_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 816484d

Please sign in to comment.