X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fmutex.h;h=99b83e3a3dcccc526c481ff35ea9514afa6663f5;hb=c6b17b7094c42ff6bf96e3452f69023c724d15b7;hp=ed3954f03f5a0bce02737a11308ba74fb9192e75;hpb=06f26e85df99b56fee97282b9f9ac7d51fb976cc;p=lyx.git diff --git a/src/support/mutex.h b/src/support/mutex.h index ed3954f03f..99b83e3a3d 100644 --- a/src/support/mutex.h +++ b/src/support/mutex.h @@ -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;