Virtual class that (usually) holds a lockable type and checks if it is locked or shared-locked. An instance of this type may be assigned to a DbgCriticalSections instance.
Implementations for the six lock types exists. Custom implementations may of course be given. This is done, for example, in with class ThreadPool of sibling module ALib ThreadModel.
Definition at line 121 of file dbgcriticalsections.hpp.
#include <dbgcriticalsections.hpp>
Public Method Index: | |
virtual | ~AssociatedLock () |
Virtual Destructor. | |
virtual bool | DCSIsAcquired () const =0 |
virtual bool | DCSIsSharedAcquired () const =0 |
|
inlinevirtual |
Virtual Destructor.
Definition at line 124 of file dbgcriticalsections.hpp.
|
pure virtual |
true
if the lock is acquired (in non-shared mode), false
otherwise. Implemented in ThreadPool, Lock, RecursiveLock, RecursiveTimedLock, SharedLock, SharedTimedLock, and TimedLock.
|
pure virtual |
true
if the lock is shared-acquired (by at least any thread). Otherwise, returns false
. Implemented in ThreadPool, Lock, RecursiveLock, RecursiveTimedLock, SharedLock, SharedTimedLock, and TimedLock.