DummyLock Class Reference

Internal lock implementation without threads. More...

#include <dummylock.h>

List of all members.

Public Member Functions

 DummyLock () throw ()
 Lock constructor.
void acquire () throw ()
 Blockingly acquires this lock.
bool tryacquire () throw ()
 Tries to acquire this lock.
void release () throw ()
 Releases this lock.
 ~DummyLock () throw ()
 Lock destructor.


Detailed Description

Internal lock implementation without threads.


Member Function Documentation

void DummyLock::acquire (  )  throw () [inline]

Blockingly acquires this lock.

As there is no way to release an acquired lock while acquiring it in single threaded mode this version will assert the lock not being locked.

bool DummyLock::tryacquire (  )  throw () [inline]

Tries to acquire this lock.

Returns:
true if the lock was acquired by this call

void DummyLock::release (  )  throw () [inline]

Releases this lock.

If the lock is not acquired the behaviour is undefined.


The documentation for this class was generated from the following file:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1