OSDN Git Service

2011-05-26 Jonathan Wakely <jwakely.gcc@gmail.com>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 May 2011 23:49:11 +0000 (23:49 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 May 2011 23:49:11 +0000 (23:49 +0000)
* include/std/mutex: Add doxygen comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174244 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/mutex

index 8d65a08..3926a04 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/std/mutex: Add doxygen comments.
+
 2011-05-25  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * config/abi/pre/gnu.ver: Export recently added  basic_streambuf
index de16cd3..2ba9576 100644 (file)
@@ -632,6 +632,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       bool             _M_owns; // XXX use atomic_bool
     };
 
+  /// Partial specialization for unique_lock objects.
   template<typename _Mutex>
     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<typename _Callable, typename... _Args>