libstdc++: Fix error in experimental::strand

libstdc++-v3/ChangeLog:

	* include/experimental/executor (strand::_State): Fix thinko.
This commit is contained in:
Jonathan Wakely 2020-10-26 21:00:06 +00:00
parent 4f8cfb4288
commit b784bbbe45

View File

@ -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