fast_mutex Class Reference

#include <fast_mutex.h>


Detailed Description

Class for non-reentrant fast mutexes. This is the null implementation for single-threaded environments.

Definition at line 257 of file fast_mutex.h.


Public Member Functions

 fast_mutex ()
void lock ()
void unlock ()
 ~fast_mutex ()

Private Member Functions

 fast_mutex (const fast_mutex &)
fast_mutexoperator= (const fast_mutex &)

Constructor & Destructor Documentation

fast_mutex::fast_mutex (  )  [inline]

Definition at line 263 of file fast_mutex.h.

00265             : _M_locked(false)
00266 #       endif
00267         {
00268         }

fast_mutex::~fast_mutex (  )  [inline]

Definition at line 269 of file fast_mutex.h.

References _FAST_MUTEX_ASSERT.

00270         {
00271             _FAST_MUTEX_ASSERT(!_M_locked, "~fast_mutex(): still locked");
00272         }

fast_mutex::fast_mutex ( const fast_mutex  )  [private]


Member Function Documentation

void fast_mutex::lock (  )  [inline]

Definition at line 273 of file fast_mutex.h.

References _FAST_MUTEX_ASSERT.

Referenced by fast_mutex_autolock::fast_mutex_autolock().

00274         {
00275 #       ifdef _DEBUG
00276             _FAST_MUTEX_ASSERT(!_M_locked, "lock(): already locked");
00277             _M_locked = true;
00278 #       endif
00279         }

fast_mutex& fast_mutex::operator= ( const fast_mutex  )  [private]

void fast_mutex::unlock (  )  [inline]

Definition at line 280 of file fast_mutex.h.

References _FAST_MUTEX_ASSERT.

Referenced by fast_mutex_autolock::~fast_mutex_autolock().

00281         {
00282 #       ifdef _DEBUG
00283             _FAST_MUTEX_ASSERT(_M_locked, "unlock(): not locked");
00284             _M_locked = false;
00285 #       endif
00286         }


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

Generated on Wed May 5 00:06:41 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6