19 virtual ~Mutex() =
default;
25 virtual void Lock(
void) noexcept = 0;
32 virtual
bool TryLock(
void) noexcept = 0;
38 virtual
void Unlock(
void) noexcept = 0;
43 CYB_SET_ALLOCATABLE_ID(
Mutex);
virtual bool TryLock(void) noexcept=0
Attempt to acquire a lock on a Mutex. This will not block the current thread. The Mutex must not be o...
virtual void Unlock(void) noexcept=0
Release a lock on a Mutex. Should only be called after a Lock or TryLock on the same Mutex was aquire...
Used as a base class by all constructors.
virtual void Lock(void) noexcept=0
Acquire a lock on a Mutex. This will block the current thread until the lock is aquired. The Mutex must not be owned by the current thread.
Constructor< void > EmptyConstructor
Constructor<void> alias.
virtual ~Mutex()=default
Destroy a Mutex. Mutex must be unlocked.
A fast locking, no order guaranteed, mutex.
Defines the base class for allocatable engine objects.