From: Jonathan Wakely Date: Wed, 25 May 2011 23:49:11 +0000 (+0000) Subject: mutex: Add doxygen comments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e06745c110f4fb0622a0eeb2ce299f6ad9ca22e2;p=gcc.git mutex: Add doxygen comments. 2011-05-26 Jonathan Wakely * include/std/mutex: Add doxygen comments. From-SVN: r174244 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8d65a084667..3926a0442e4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2011-05-26 Jonathan Wakely + + * include/std/mutex: Add doxygen comments. + 2011-05-25 Paolo Carlini * config/abi/pre/gnu.ver: Export recently added basic_streambuf diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex index de16cd3d086..2ba95769504 100644 --- a/libstdc++-v3/include/std/mutex +++ b/libstdc++-v3/include/std/mutex @@ -632,6 +632,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION bool _M_owns; // XXX use atomic_bool }; + /// Partial specialization for unique_lock objects. template inline void swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept @@ -759,9 +760,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __native_type _M_once; public: + /// Constructor constexpr once_flag() noexcept : _M_once(__GTHREAD_ONCE_INIT) { } + /// Deleted copy constructor once_flag(const once_flag&) = delete; + /// Deleted assignment operator once_flag& operator=(const once_flag&) = delete; template