tinythreadlib.hpp File Reference

Go to the source code of this file.

Classes

class  tinythreadlib::Mutex
 Recursive mutex. More...
class  tinythreadlib::MutexGuard
 Mutex guard (RAII-class) More...
class  tinythreadlib::ReadWriteLock
 Recursive read / write lock. More...
class  tinythreadlib::ReadLockGuard
 Read lock guard (RAII-class) More...
class  tinythreadlib::WriteLockGuard
 Write lock guard (RAII-class) More...
class  tinythreadlib::ConditionVariable
 Condition variable. More...
class  tinythreadlib::Thread
 Thread More...

Defines

#define TINYTHREADLIB_VERSION   "0.5"
 The version of TinThreadLib version.
#define TINYTHREADLIB_NAMESPACE_NAME   tinythreadlib
 The TinyThreadLib namespace (default: tinythreadlib).
#define TINYTHREADLIB_NO_NAMESPACE
 Disable TinyThreadLib namespace.
#define TINYTHREADLIB_ENABLE_VISTA_FEATURES
 Enable Windows Vista specific features.
#define TINYTHREADLIB_RWLOCK_USE_MUTEX
 Implement ReadWriteLock using a simple mutex.
#define TINYTHREADLIB_RWLOCK_MUTEX_SIMULATE_DEADLOCKS
 Simulate the deadlock behaviour of ordinary read / write locks.

Detailed Description

Definition in file tinythreadlib.hpp.


Define Documentation

#define TINYTHREADLIB_ENABLE_VISTA_FEATURES

Enable Windows Vista specific features.

Enable features which are only available on Windows Vista / Windows Server 2008 and later. Only relevant for Windows!

Definition at line 94 of file tinythreadlib.hpp.

#define TINYTHREADLIB_NAMESPACE_NAME   tinythreadlib

The TinyThreadLib namespace (default: tinythreadlib).

Only relevant, if TINYTHREADLIB_NO_NAMESPACE is not defined!

Definition at line 71 of file tinythreadlib.hpp.

#define TINYTHREADLIB_NO_NAMESPACE

Disable TinyThreadLib namespace.

If defined, TinyThreadLib does not use namespaces.

Definition at line 81 of file tinythreadlib.hpp.

#define TINYTHREADLIB_RWLOCK_MUTEX_SIMULATE_DEADLOCKS

Simulate the deadlock behaviour of ordinary read / write locks.

If defined, ReadWriteLock simulates the deadlock behaviour of ordinary read / write locks if it uses an ordinary mutex. Has no effect, if TINYTHREADLIB_RWLOCK_USE_MUTEX is not defined. This is defined automatically for Windows / Windows CE debug builds, unless TINYTHREADLIB_ENABLE_VISTA_FEATURES is defined. It makes no sense to enable this for release builds, because it makes ReadWriteLock inefficient!

Definition at line 123 of file tinythreadlib.hpp.

#define TINYTHREADLIB_RWLOCK_USE_MUTEX

Implement ReadWriteLock using a simple mutex.

If defined, ReadWriteLock uses an ordinary Mutex. This is defined automatically for Windows / Windows CE, unless TINYTHREADLIB_ENABLE_VISTA_FEATURES is defined.

Definition at line 107 of file tinythreadlib.hpp.

 All Classes Files Functions Defines

Generated on Mon Apr 19 22:37:45 2010 for TinyThreadLib by  doxygen 1.6.1