libstdc++: Fix error in experimental::strand
libstdc++-v3/ChangeLog: * include/experimental/executor (strand::_State): Fix thinko.
This commit is contained in:
parent
4f8cfb4288
commit
b784bbbe45
1 changed files with 2 additions and 2 deletions
|
@ -1602,8 +1602,8 @@ inline namespace v1
|
|||
{
|
||||
#if defined(_GLIBCXX_HAS_GTHREADS)
|
||||
bool
|
||||
running_in_this_thread() const
|
||||
{ return std::this_thread::get_id() == _M_state->_M_running_on; }
|
||||
running_in_this_thread() const noexcept
|
||||
{ return std::this_thread::get_id() == _M_running_on; }
|
||||
|
||||
std::thread::id _M_running_on;
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue