diff options
Diffstat (limited to 'libstdc++-v3/include/std/mutex')
-rw-r--r-- | libstdc++-v3/include/std/mutex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex index 38950b6..5e5ced1 100644 --- a/libstdc++-v3/include/std/mutex +++ b/libstdc++-v3/include/std/mutex @@ -302,7 +302,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION public: timed_mutex() = default; - ~timed_mutex() { _GLIBCXX_DEBUG_ASSERT( !_M_locked ); } + ~timed_mutex() { __glibcxx_assert( !_M_locked ); } timed_mutex(const timed_mutex&) = delete; timed_mutex& operator=(const timed_mutex&) = delete; @@ -351,7 +351,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION unlock() { lock_guard<mutex> __lk(_M_mut); - _GLIBCXX_DEBUG_ASSERT( _M_locked ); + __glibcxx_assert( _M_locked ); _M_locked = false; _M_cv.notify_one(); } @@ -380,7 +380,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION public: recursive_timed_mutex() = default; - ~recursive_timed_mutex() { _GLIBCXX_DEBUG_ASSERT( _M_count == 0 ); } + ~recursive_timed_mutex() { __glibcxx_assert( _M_count == 0 ); } recursive_timed_mutex(const recursive_timed_mutex&) = delete; recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; @@ -449,8 +449,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION unlock() { lock_guard<mutex> __lk(_M_mut); - _GLIBCXX_DEBUG_ASSERT( _M_owner == this_thread::get_id() ); - _GLIBCXX_DEBUG_ASSERT( _M_count > 0 ); + __glibcxx_assert( _M_owner == this_thread::get_id() ); + __glibcxx_assert( _M_count > 0 ); if (--_M_count == 0) { _M_owner = {}; |