Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
namespace audio {
|
||||
template<class T>
|
||||
struct SAutoLocker {
|
||||
T* obj;
|
||||
|
||||
SAutoLocker(T* Object) { obj = Object; obj->lock(); }
|
||||
~SAutoLocker() { obj->unlock(); }
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user