RR Thread Pool
 All Classes Functions Typedefs Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
IMutex Class Referenceabstract

The mutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads. More...

#include <Mutex.h>

Public Member Functions

virtual ~IMutex ()
 Destructor.
 
virtual void lock ()=0
 Locks the mutex. More...
 
virtual void unlock ()=0
 Unlocks the mutex.
 
virtual void * handle ()=0
 Returns the platform dependent handle associated to this object.
 

Static Public Member Functions

static IMutexcreate ()
 Creates one new mutex. More...
 

Detailed Description

The mutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.

Member Function Documentation

static IMutex* IMutex::create ( )
static

Creates one new mutex.

A mutual exclusion object (mutex) is an object that can be owned by one single thread at the same time. Threads can use mutexes to performs operation on block of shared variables atomically.

virtual void IMutex::lock ( )
pure virtual

Locks the mutex.

The calling thread try to get the exclusive ownership over the mutex or wait until it manage to


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