Legacy code cleanup - part 3 (#3903)
* Legacy cleanup - part 3 Not much is left that can be easily removed, so I think this will be last cleanup before the legacy functionality is replaced. Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * fix windows build, remove a few more things, re-add one file Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Remove legacy RenderBus + more cleanups Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Remove MaterialOwnerBus.h Clean-up in Cry_Matrix34/33 Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
This commit is contained in:
@@ -6,9 +6,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef CRYINCLUDE_CRYCOMMON_SYNCHRONIZATION_H
|
||||
#define CRYINCLUDE_CRYCOMMON_SYNCHRONIZATION_H
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -25,46 +22,4 @@
|
||||
|
||||
namespace stl
|
||||
{
|
||||
template<class Sync>
|
||||
struct AutoLock
|
||||
{
|
||||
ILINE AutoLock(Sync& sync)
|
||||
: _sync(sync)
|
||||
{
|
||||
sync.Lock();
|
||||
}
|
||||
ILINE ~AutoLock()
|
||||
{
|
||||
_sync.Unlock();
|
||||
}
|
||||
|
||||
private:
|
||||
Sync& _sync;
|
||||
};
|
||||
|
||||
|
||||
struct PSyncNone
|
||||
{
|
||||
void Lock() {}
|
||||
void Unlock() {}
|
||||
};
|
||||
|
||||
struct PSyncMultiThread
|
||||
{
|
||||
PSyncMultiThread() {}
|
||||
|
||||
void Lock()
|
||||
{
|
||||
m_lock.lock();
|
||||
}
|
||||
void Unlock()
|
||||
{
|
||||
m_lock.unlock();
|
||||
}
|
||||
|
||||
private:
|
||||
AZStd::spin_mutex m_lock;
|
||||
};
|
||||
};
|
||||
|
||||
#endif // CRYINCLUDE_CRYCOMMON_SYNCHRONIZATION_H
|
||||
|
||||
Reference in New Issue
Block a user