ORIGINAL
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
original::mutex Class Referencefinal
Inheritance diagram for original::mutex:
Inheritance graph
Collaboration diagram for original::mutex:
Collaboration graph

Public Types

using native_handle = mutex()
 

Public Member Functions

 mutex (mutex &&)=delete
 
mutexoperator= (mutex &)=delete
 
ul_integer id () const override
 Gets a unique identifier for the mutex.
 
voidnativeHandle () noexcept override
 Gets the native handle of the mutex.
 
void lock () override
 Locks the mutex, blocking if necessary.
 
bool tryLock () override
 Attempts to lock the mutex without blocking.
 
void unlock () override
 Unlocks the mutex.
 
- Public Member Functions inherited from original::mutexBase
 mutexBase ()=default
 Default constructor.
 
 mutexBase (const mutexBase &)=delete
 Deleted copy constructor.
 
mutexBaseoperator= (const mutexBase &)=delete
 Deleted copy assignment operator.
 
virtual ~mutexBase ()=default
 Virtual destructor.
 

Member Function Documentation

◆ id()

original::ul_integer original::mutex::id ( ) const
inlineoverridevirtual

Gets a unique identifier for the mutex.

Returns
Unique identifier based on mutex internal state

Implements original::mutexBase.

◆ lock()

void original::mutex::lock ( )
inlineoverridevirtual

Locks the mutex, blocking if necessary.

Exceptions
sysErrorif the lock operation fails

Implements original::mutexBase.

◆ nativeHandle()

void * original::mutex::nativeHandle ( )
inlineoverridevirtualnoexcept

Gets the native handle of the mutex.

Returns
Pointer to the native mutex handle

Implements original::mutexBase.

◆ tryLock()

bool original::mutex::tryLock ( )
inlineoverridevirtual

Attempts to lock the mutex without blocking.

Returns
true if lock was acquired, false otherwise
Exceptions
sysErrorif the operation fails (other than EBUSY)

Implements original::mutexBase.

◆ unlock()

void original::mutex::unlock ( )
inlineoverridevirtual

Unlocks the mutex.

Exceptions
sysErrorif the unlock operation fails

Implements original::mutexBase.


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