Patchwork [v3] add doxygen comments to deleted functions

login
register
mail settings
Submitter Jonathan Wakely
Date May 25, 2011, 11:48 p.m.
Message ID <BANLkTi=Sja-9npyAqY8yde-jCrF3hZP+1w@mail.gmail.com>
Download mbox | patch
Permalink /patch/97442/
State New
Headers show

Comments

Jonathan Wakely - May 25, 2011, 11:48 p.m.
As discussed recently on the libstdc++ list ...

2011-05-26  Jonathan Wakely  <jwakely.gcc@gmail.com>

        * include/std/mutex: Add doxygen comments.


Tested x86_64-linux and committed to trunk

Patch

Index: include/std/mutex
===================================================================
--- include/std/mutex	(revision 174240)
+++ include/std/mutex	(working copy)
@@ -632,6 +632,7 @@ 
       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 @@ 
     __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>