Classes | Functions

Threadsafe Collection API
[Mulithreading Libraries]

A set of objects and collection for threadsafe C++ code. More...

Collaboration diagram for Threadsafe Collection API:

Classes

class  smart_mutex
 class that automatically creates and destroys mutexes More...
class  mlock
 class that automatically locks and unlocks pthread mutexes To use mlocks in code:

  • create smart_mutex that will be locked
  • create an mlock object and pass the mutex in the constructor
  • on destruction, the mlock will automatically unlock the mutex
More...
class  smart_ptr< T >
 Auto-destructing pointer class. More...
class  threadsafe_counter
 Simple synchronized counter. More...
class  threadsafe_map< K, T >
 threadsafe map object More...
class  threadsafe_multimap< K, T >
 A very simple map object that is safe for multiple threads to use at the same time. More...
class  threadsafe_queue< T >

Functions

 smart_mutex::~smart_mutex (void)
 destructor will automatically destroy mutex
mutex_tsmart_mutex::getMutex (void)
 operating-system-dependent accessor
 mlock::~mlock (void)
 destructor automatically unlocks

Detailed Description

A set of objects and collection for threadsafe C++ code.

Abstracts lower-level threadsafe objects.


Function Documentation

smart_mutex::~smart_mutex ( void   )  [inline, inherited]

destructor will automatically destroy mutex

Definition at line 73 of file smart_mutex.h.

mutex_t* smart_mutex::getMutex ( void   )  [inline, inherited]

operating-system-dependent accessor

Definition at line 82 of file smart_mutex.h.

mlock::~mlock ( void   )  [inline, inherited]

destructor automatically unlocks

Definition at line 126 of file smart_mutex.h.