+2016-10-11 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/bits/std_mutex.h (mutex::native_handle)
+ (lock_guard(mutex_type&, adopt_lock_t)
+ (unique_lock(mutex_type&, adopt_lock_t): Add noexcept.
+ * include/std/mutex (recursive_mutex, timed_mutex)
+ (recursive_timed_mutex): Likewise.
+
2016-10-10 Jonathan Wakely <jwakely@redhat.com>
* doc/xml/manual/appendix_contributing.xml (contrib.organization):
}
native_handle_type
- native_handle()
+ native_handle() noexcept
{ return &_M_mutex; }
};
explicit lock_guard(mutex_type& __m) : _M_device(__m)
{ _M_device.lock(); }
- lock_guard(mutex_type& __m, adopt_lock_t) : _M_device(__m)
+ lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m)
{ } // calling thread owns mutex
~lock_guard()
: _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock())
{ }
- unique_lock(mutex_type& __m, adopt_lock_t)
+ unique_lock(mutex_type& __m, adopt_lock_t) noexcept
: _M_device(std::__addressof(__m)), _M_owns(true)
{
// XXX calling thread owns mutex