The mutex class. More...

#include "murl_system_mutex.h"

Inheritance diagram for Murl::System::Mutex:

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...
 

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.

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:
  • murl_system_mutex.h


Copyright © 2011-2018 Spraylight GmbH.