X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fmutex.h;h=5f34f7de514f3161d27ba3d6682b114e54a07a20;hb=52072b9b4e88e3260637b654d364193092d04192;hp=ed3954f03f5a0bce02737a11308ba74fb9192e75;hpb=06f26e85df99b56fee97282b9f9ac7d51fb976cc;p=lyx.git diff --git a/src/support/mutex.h b/src/support/mutex.h index ed3954f03f..5f34f7de51 100644 --- a/src/support/mutex.h +++ b/src/support/mutex.h @@ -21,6 +21,9 @@ namespace lyx { class Mutex { + /// noncopyable + Mutex(const Mutex&); + Mutex& operator=(const Mutex&); public: Mutex(); ~Mutex(); @@ -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;