libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
from::DLKR::DLPlainAdaptiveMutex Class Reference

A wrapper around a Windows Critical Section (with a spincount). More...

#include <kernel_runtime.hpp>

Inheritance diagram for from::DLKR::DLPlainAdaptiveMutex:
from::DLKR::DLPlainLightMutex from::DLUT::DLNonCopyable

Public Member Functions

 DLPlainAdaptiveMutex (int spin_count) noexcept
 Initialize the Windows Critical Section with an explicit spin count.
 
 DLPlainAdaptiveMutex (DLPlainAdaptiveMutex &&) noexcept=delete
 
- Public Member Functions inherited from from::DLKR::DLPlainLightMutex
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
 
- Public Member Functions inherited from from::DLUT::DLNonCopyable
 DLNonCopyable (const DLNonCopyable &)=delete
 
DLNonCopyableoperator= (const DLNonCopyable &)=delete
 

Detailed Description

A wrapper around a Windows Critical Section (with a spincount).

Satisfies the C++ Mutex requirement.

Recursive, not TimedLockable.

Constructor & Destructor Documentation

◆ DLPlainAdaptiveMutex()

from::DLKR::DLPlainAdaptiveMutex::DLPlainAdaptiveMutex ( int  spin_count)
inlineexplicitnoexcept

Initialize the Windows Critical Section with an explicit spin count.

Parameters
spin_counthow many times to spin before sleeping

The documentation for this class was generated from the following file: