Murl Engine API  Version 2018.3
Murl::System::Mutex Class Reference

The mutex class. More...

#include <murl_system_mutex.h>

Detailed Description

The mutex class.

To protect a code block for multi-threaded access, Lock() at the beginning of the block and Unlock() at the end of the block.

Inheritance diagram for Murl::System::Mutex:
Murl::NonCopyable

Public Member Functions

 Mutex ()
 The default constructor.
 
 ~Mutex ()
 The destructor.
 
Bool Lock () const
 Lock the mutex. More...
 
Bool Unlock () const
 Unlock the mutex. More...
 

Protected Attributes

MutexHandle * mHandle
 The anonymous mutex handle for internal use only. More...
 

Member Function Documentation

◆ Lock()

Bool Murl::System::Mutex::Lock ( ) const

Lock the mutex.

Returns
true if successful.

◆ Unlock()

Bool Murl::System::Mutex::Unlock ( ) const

Unlock the mutex.

Returns
true if successful.

Member Data Documentation

◆ mHandle

MutexHandle* Murl::System::Mutex::mHandle
mutableprotected

The anonymous mutex handle for internal use only.


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