]> git.lyx.org Git - lyx.git/blobdiff - src/support/mutex.h
FORMAT for format 594
[lyx.git] / src / support / mutex.h
index ed3954f03f5a0bce02737a11308ba74fb9192e75..99b83e3a3dcccc526c481ff35ea9514afa6663f5 100644 (file)
@@ -21,15 +21,18 @@ namespace lyx {
 
 class Mutex
 {
+       /// noncopyable
+       Mutex(const Mutex&);
+       Mutex& operator=(const Mutex&);
 public:
        Mutex();
        ~Mutex();
-       
+
        /// Scope based locking:
        /// Usage:
        /// >>> unlocked
-       /// { 
-       ///     Mutex::Locker locker(a_Mutex_ptr);  
+       /// {
+       ///     Mutex::Locker locker(a_Mutex_ptr);
        ///     >>> locked
        /// }
        /// >>> unlocked
@@ -45,12 +48,6 @@ public:
                Locker& operator=(const Locker& rhs);
                Mutex* mutex_;
        };
-       
-
-       // pseude-value semantic
-       // needed by GuiPrefs which makes a copy
-       Mutex(const Mutex&);
-       Mutex& operator=(const Mutex&);
 
 private:
        struct Private;