28 #ifndef __CALOCKABLE__
29 #define __CALOCKABLE__
31 #if !defined ONLY_LOCAL_PROXY || defined INCLUDE_MIDDLE_MIX
SINT32 signal()
Signals this object.
SINT32 wait()
Waits for a signal or for a timeout.
From this class other classes could be derived, which need some kind from "locking" in memory.
UINT32 m_nLockCount
The reference counter.
SINT32 waitForDestroy()
If called checks if the reference counter equals zero.
SINT32 unlock()
Unlocks the lockable object by threadsafe decrementing a reference counter.
CAConditionVariable m_ConVar
A conditional variable, which would be signaled if the rerference counter reaches zero.
SINT32 lock()
Locks the lockable object by threadsafe incrementing a reference counter.