mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Various Cleanups (framework/)
This commit is contained in:
parent
8951eed780
commit
9753625fd1
23 changed files with 239 additions and 224 deletions
|
|
@ -33,7 +33,7 @@ namespace MaNGOS
|
|||
{
|
||||
public:
|
||||
|
||||
GeneralLock(MUTEX &m)
|
||||
GeneralLock(MUTEX& m)
|
||||
: i_mutex(m)
|
||||
{
|
||||
i_mutex.acquire();
|
||||
|
|
@ -46,9 +46,9 @@ namespace MaNGOS
|
|||
|
||||
private:
|
||||
|
||||
GeneralLock(const GeneralLock &);
|
||||
GeneralLock& operator=(const GeneralLock &);
|
||||
MUTEX &i_mutex;
|
||||
GeneralLock(const GeneralLock&);
|
||||
GeneralLock& operator=(const GeneralLock&);
|
||||
MUTEX& i_mutex;
|
||||
};
|
||||
|
||||
template<class T>
|
||||
|
|
@ -87,7 +87,7 @@ namespace MaNGOS
|
|||
{
|
||||
public:
|
||||
|
||||
Lock(ObjectLevelLockable<T, MUTEX> &host)
|
||||
Lock(ObjectLevelLockable<T, MUTEX>& host)
|
||||
: i_lock(host.i_mtx)
|
||||
{
|
||||
}
|
||||
|
|
@ -126,7 +126,7 @@ namespace MaNGOS
|
|||
ClassLevelLockable<T, MUTEX>::si_mtx.acquire();
|
||||
}
|
||||
|
||||
Lock(const ClassLevelLockable<T, MUTEX> &)
|
||||
Lock(const ClassLevelLockable<T, MUTEX>&)
|
||||
{
|
||||
ClassLevelLockable<T, MUTEX>::si_mtx.acquire();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue