ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
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 121 of file dbgcriticalsections.hpp.

#include <dbgcriticalsections.hpp>

Inheritance diagram for 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 ~AssociatedLock ( )
inlinevirtual

Virtual Destructor.

Definition at line 124 of file dbgcriticalsections.hpp.

Method Details:

◆ DCSIsAcquired()

virtual bool DCSIsAcquired ( ) const
pure virtual
Returns
true if the lock is acquired (in non-shared mode), false otherwise.

Implemented in ThreadPool, Lock, RecursiveLock, RecursiveTimedLock, SharedLock, SharedTimedLock, and TimedLock.

◆ DCSIsSharedAcquired()

virtual bool DCSIsSharedAcquired ( ) const
pure virtual
Returns
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.


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