ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::lang::DbgCriticalSections::AssociatedLock Struct Referenceabstract

Description:

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 72 of file dbgcriticalsections.inl.

Inheritance diagram for alib::lang::DbgCriticalSections::AssociatedLock:
[legend]

Public Method Index:

virtual ~AssociatedLock ()
 Virtual Destructor.
 
virtual bool DCSIsAcquired () const =0
 
virtual bool DCSIsSharedAcquired () const =0
 

Constructor(s) / Destructor Details:

◆ ~AssociatedLock()

virtual alib::lang::DbgCriticalSections::AssociatedLock::~AssociatedLock ( )
inlinevirtual

Virtual Destructor.

Definition at line 75 of file dbgcriticalsections.inl.

Method Details:

◆ DCSIsAcquired()

virtual bool alib::lang::DbgCriticalSections::AssociatedLock::DCSIsAcquired ( ) const
pure virtual

◆ DCSIsSharedAcquired()

virtual bool alib::lang::DbgCriticalSections::AssociatedLock::DCSIsSharedAcquired ( ) const
pure virtual
Returns
true if the lock is shared-acquired (by at least any thread). Otherwise, returns false.

Implemented in alib::threadmodel::ThreadPool, alib::threads::Lock, alib::threads::RecursiveLock, alib::threads::RecursiveTimedLock, alib::threads::SharedLock, alib::threads::SharedTimedLock, and alib::threads::TimedLock.


The documentation for this struct was generated from the following file: