Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
Mutex Class Referenceabstract

#include <mutex.h>

Inheritance diagram for Mutex:
MutexDummy

Public Member Functions

virtual void lock ()=0
 Lock the mutex, block if locked by someone else.
 
virtual void unlock ()=0
 Unlock the mutex, let other threads continue.
 
virtual Error try_lock ()=0
 Attempt to lock the mutex, OK on success, ERROR means it can't lock.
 

Static Public Member Functions

static Mutexcreate (bool p_recursive=true)
 Create a mutex.
 

Static Protected Attributes

static Mutex *(* create_func )(bool)
 

Detailed Description

Author
Juan Linietsky Portable Mutex (thread-safe locking) implementation. Mutexes are always recursive ( they don't self-lock in a single thread ). Mutexes can be used with a Lockp object like this, to avoid having to worry about unlocking: Lockp( mutex );

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