fast_mutex.h File Reference

Back to the index.

Classes | Macros
fast_mutex.h File Reference

Go to the source code of this file.

Classes

class  fast_mutex
 Part of Wu Yongwei's new/delete debug memory leak detector. More...
 
class  fast_mutex_autolock
 Part of Wu Yongwei's new/delete debug memory leak detector. More...
 

Macros

#define _NOTHREADS
 
#define _FAST_MUTEX_CHECK_INITIALIZATION   1
 
#define _FAST_MUTEX_ASSERT(_Expr, _Msg)   ((void)0)
 
#define __VOLATILE
 

Detailed Description

A fast mutex implementation for POSIX and Win32.

Version
1.18, 2005/05/06
Author
Wu Yongwei

Definition in file fast_mutex.h.

Macro Definition Documentation

◆ __VOLATILE

#define __VOLATILE

Macro alias to `volatile' semantics. Here it is not truly volatile since it is in a single-threaded environment.

Definition at line 265 of file fast_mutex.h.

◆ _FAST_MUTEX_ASSERT

#define _FAST_MUTEX_ASSERT (   _Expr,
  _Msg 
)    ((void)0)

Macro for fast_mutex assertions. Fake version (for release mode).

Definition at line 107 of file fast_mutex.h.

Referenced by fast_mutex::lock(), fast_mutex::unlock(), and fast_mutex::~fast_mutex().

◆ _FAST_MUTEX_CHECK_INITIALIZATION

#define _FAST_MUTEX_CHECK_INITIALIZATION   1

Macro to control whether to check for initialization status for each lock/unlock operation. Defining it to a non-zero value will enable the check, so that the construction/destruction of a static object using a static fast_mutex not yet constructed or already destroyed will work (with lock/unlock operations ignored). Defining it to zero will disable to check.

Definition at line 87 of file fast_mutex.h.

◆ _NOTHREADS

#define _NOTHREADS

Definition at line 65 of file fast_mutex.h.


Generated on Fri Dec 7 2018 19:52:23 for GXemul by doxygen 1.8.13