libER 0.1.4.2
ELDEN RING API library
|
A wrapper around a Windows Critical Section. More...
#include <kernel_runtime.hpp>
Public Member Functions | |
LIBERAPI | DLPlainLightMutex (int spin_count) noexcept |
Initialize the Windows Critical Section with an explicit spin count. | |
LIBERAPI void | lock () noexcept |
Lock the mutex. | |
LIBERAPI void | unlock () noexcept |
Unlock the mutex. | |
LIBERAPI bool | try_lock () noexcept |
Try to lock the mutex. | |
DLPlainLightMutex (DLPlainLightMutex &&) noexcept=delete | |
![]() | |
DLNonCopyable (const DLNonCopyable &)=delete | |
DLNonCopyable & | operator= (const DLNonCopyable &)=delete |
A wrapper around a Windows Critical Section.
Satisfies the C++ Mutex requirement.
Recursive, not TimedLockable.
Initialize the Windows Critical Section with an explicit spin count.
spin_count | how many times to spin before sleeping |
Lock the mutex.
Prefer using STL lock objects over calling this explicitly.
Try to lock the mutex.
Prefer using STL lock objects over calling this explicitly.
Unlock the mutex.
Prefer using STL lock objects over calling this explicitly.