X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a258b9f408911f1a0e6f221180ee9993d100f58b..a9c940996bac5c61168f06ef61bc20225fb7a65e:/stglibs/locker.lib/locker.h diff --git a/stglibs/locker.lib/locker.h b/stglibs/locker.lib/locker.h index 4621388e..7a8d0b8d 100644 --- a/stglibs/locker.lib/locker.h +++ b/stglibs/locker.lib/locker.h @@ -38,9 +38,8 @@ #endif -#include "stg/noncopyable.h" //----------------------------------------------------------------------------- -class STG_LOCKER : private NONCOPYABLE +class STG_LOCKER { public: #ifdef DEBUG_LOCKER @@ -48,6 +47,7 @@ public: : mutex(m), file(__file__), line(__line__), + lockerMutex(), lockID(0) #else STG_LOCKER(pthread_mutex_t * m, const char *, int) @@ -79,6 +79,9 @@ public: #endif }; private: + STG_LOCKER(const STG_LOCKER & rvalue); + STG_LOCKER & operator=(const STG_LOCKER & rvalue); + pthread_mutex_t * mutex; #ifdef DEBUG_LOCKER std::string file;