diff options
| author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2021-01-10 14:27:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-10 14:27:55 +0100 |
| commit | da4edd547d03b5a406a54c5f05649d2faec8339a (patch) | |
| tree | 5f5969e24f6ea059ce209a04702c306397c0b0b5 /src/common/Threading/ThreadingModel.h | |
| parent | 7cf097eab2fc1425638557903f06a8922ee74ec1 (diff) | |
chore(core): remove malformed whitespaces (#4244)
* from https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/issues?category=Style&groupId=838&lang=5&page=75
Diffstat (limited to 'src/common/Threading/ThreadingModel.h')
| -rw-r--r-- | src/common/Threading/ThreadingModel.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/common/Threading/ThreadingModel.h b/src/common/Threading/ThreadingModel.h index c2b0560698..95e1eb213b 100644 --- a/src/common/Threading/ThreadingModel.h +++ b/src/common/Threading/ThreadingModel.h @@ -20,7 +20,6 @@ namespace acore class GeneralLock { public: - GeneralLock(MUTEX& m) : i_mutex(m) { @@ -33,7 +32,6 @@ namespace acore } private: - GeneralLock(const GeneralLock&); GeneralLock& operator=(const GeneralLock&); MUTEX& i_mutex; @@ -43,7 +41,6 @@ namespace acore class SingleThreaded { public: - struct Lock // empty object { Lock() @@ -63,7 +60,6 @@ namespace acore class ObjectLevelLockable { public: - ObjectLevelLockable() : i_mtx() { @@ -74,19 +70,16 @@ namespace acore class Lock { public: - Lock(ObjectLevelLockable<T, MUTEX>& host) : i_lock(host.i_mtx) { } private: - GeneralLock<MUTEX> i_lock; }; private: - // prevent the compiler creating a copy construct ObjectLevelLockable(const ObjectLevelLockable<T, MUTEX>&); ObjectLevelLockable<T, MUTEX>& operator=(const ObjectLevelLockable<T, MUTEX>&); @@ -98,7 +91,6 @@ namespace acore class ClassLevelLockable { public: - ClassLevelLockable() { } @@ -108,7 +100,6 @@ namespace acore class Lock { public: - Lock(const T& /*host*/) { ClassLevelLockable<T, MUTEX>::si_mtx.lock(); @@ -131,7 +122,6 @@ namespace acore }; private: - static MUTEX si_mtx; }; } |
