diff --git a/uppsrc/Core/Mt.h b/uppsrc/Core/Mt.h index 13f280c6b..3ad7bad9d 100644 --- a/uppsrc/Core/Mt.h +++ b/uppsrc/Core/Mt.h @@ -589,18 +589,20 @@ public: LazyUpdate() { dirty = true; } }; -struct SpinLock : Moveable { +struct SpinLock { bool TryEnter() { return true; } void Leave() {} void Enter() {} + + class Lock; SpinLock() {} }; class SpinLock::Lock : NoCopy { public: - Lock(SpinLock& s) : s(s) {} - ~Lock() {} + Lock(SpinLock& s) {} + ~Lock() {} }; #define INTERLOCKED