diff options
-rw-r--r-- | libstdc++-v3/include/bits/atomic_wait.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/atomic_wait.h b/libstdc++-v3/include/bits/atomic_wait.h index fdf7c45..5af9367 100644 --- a/libstdc++-v3/include/bits/atomic_wait.h +++ b/libstdc++-v3/include/bits/atomic_wait.h @@ -100,7 +100,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION auto __e = syscall (SYS_futex, static_cast<const void*>(__addr), static_cast<int>(__futex_wait_flags::__wait_private), __val, nullptr); - if (!__e || EAGAIN) + if (!__e || errno == EAGAIN) break; else if (errno != EINTR) __throw_system_error(__e); @@ -133,7 +133,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION mutable __gthread_cond_t _M_cv; __waiters() noexcept { - __GTHREAD_COND_INIT_FUNCTION(&_M_cond); + __GTHREAD_COND_INIT_FUNCTION(&_M_cv); } # endif #endif |