Shadowrun: Awakened 29 September 2011 - Build 871
Defines | Typedefs
Locks.h File Reference
#include <boost/thread/shared_mutex.hpp>
#include <boost/thread/thread.hpp>
#include "recursive_mutex.h"
Include dependency graph for Locks.h:

Go to the source code of this file.

Defines

#define READER_LOCK(lockable)   ReaderLock lock(lockable);
#define WRITER_LOCK(lockable)   WriterLock lock(lockable);

Typedefs

typedef boost::shared_lock
< boost::shared_mutex > 
ReaderLock
typedef boost::shared_mutex ReaderWriterLockable
typedef boost::lock_guard
< boost::shared_mutex > 
WriterLock

Define Documentation

#define READER_LOCK (   lockable)    ReaderLock lock(lockable);

Definition at line 16 of file Locks.h.

#define WRITER_LOCK (   lockable)    WriterLock lock(lockable);

Definition at line 17 of file Locks.h.


Typedef Documentation

typedef boost::shared_lock<boost::shared_mutex> ReaderLock

Definition at line 13 of file Locks.h.

typedef boost::shared_mutex ReaderWriterLockable

Definition at line 12 of file Locks.h.

typedef boost::lock_guard<boost::shared_mutex> WriterLock

Definition at line 14 of file Locks.h.


Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net