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...
 
- Public Member Functions inherited from Murl::NonCopyable
 NonCopyable ()=default
 The default constructor.
 

Protected Attributes

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

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.

Referenced by Murl::System::Locker::Locker().

◆ Unlock()

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

Unlock the mutex.

Returns
true if successful.

Referenced by Murl::System::Locker::~Locker().


The documentation for this class was generated from the following file:
  • murl_system_mutex.h


Copyright © 2011-2024 Spraylight GmbH.