library of assembled shared sources |
http://lass.cocamware.com |
#include <thread.h>
Public Member Functions | |
Semaphore (int iNumberOfSlots=1) | |
void | lock () |
const LockResult | tryLock () |
void | unlock () |
const bool | isLocked () const |
Private Member Functions | |
void | swap (NonCopyable &) |
Private Attributes | |
volatile int | freeSlots_ |
Definition at line 335 of file thread.h.
lass::util::Semaphore::Semaphore | ( | int | iNumberOfSlots = 1 |
) | [inline] |
void lass::util::Semaphore::lock | ( | ) | [inline] |
Definition at line 343 of file thread.h.
References lass::util::atomicCompareAndSwap(), and LASS_ASSERT.
Referenced by lass::prim::Transformation3D< T >::inverse(), and lass::prim::Transformation2D< T >::inverse().
const LockResult lass::util::Semaphore::tryLock | ( | ) | [inline] |
Definition at line 354 of file thread.h.
References lass::util::atomicCompareAndSwap(), LASS_ASSERT, lass::util::lockBusy, and lass::util::lockSuccess.
void lass::util::Semaphore::unlock | ( | ) | [inline] |
Definition at line 370 of file thread.h.
References lass::util::atomicIncrement().
Referenced by lass::prim::Transformation3D< T >::inverse(), and lass::prim::Transformation2D< T >::inverse().
const bool lass::util::Semaphore::isLocked | ( | ) | const [inline] |
void lass::util::NonCopyable::swap | ( | NonCopyable & | ) | [inline, protected, inherited] |
volatile int lass::util::Semaphore::freeSlots_ [private] |
Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by 1.5.7.1 |