ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::lang::OwnerRecursive< TOwnable > Class Template Reference

Description:

template<typename TOwnable>
class alib::lang::OwnerRecursive< TOwnable >

Similar to class Owner, but calls methods AcquireRecursive and ReleaseRecursive.

See also
Chapter 3.3.1 Class Owner And Its Siblings of the Programmer's Manual of module ALib Threads
Template Parameters
TOwnableThe type to own. Requirements are to have methods AcquireRecursive and ReleaseRecursive available.

Definition at line 223 of file owner.inl.

Collaboration diagram for alib::lang::OwnerRecursive< TOwnable >:
[legend]

Public Method Index:

 OwnerRecursive (TOwnable &ownable, const CallerInfo &ci)
 
 ~OwnerRecursive ()
 Destructor. Invokes ReleaseRecursive() on member owned.
 

Protected Field Index:

CallerInfo dbgCI
 Caller information. Available only with debug-builds.
 
TOwnable & owned
 The resource to acquire and release.
 

Field Details:

◆ dbgCI

template<typename TOwnable>
CallerInfo alib::lang::OwnerRecursive< TOwnable >::dbgCI
protected

Caller information. Available only with debug-builds.

Definition at line 230 of file owner.inl.

◆ owned

template<typename TOwnable>
TOwnable& alib::lang::OwnerRecursive< TOwnable >::owned
protected

The resource to acquire and release.

Definition at line 228 of file owner.inl.

Constructor(s) / Destructor Details:

◆ OwnerRecursive()

template<typename TOwnable>
alib::lang::OwnerRecursive< TOwnable >::OwnerRecursive ( TOwnable & ownable,
const CallerInfo & ci )
inline

Constructor. Invokes AcquireRecursive() on member owned.

Parameters
ownableThe ownable to acquire.
ciCaller information.

Definition at line 251 of file owner.inl.

◆ ~OwnerRecursive()

template<typename TOwnable>
alib::lang::OwnerRecursive< TOwnable >::~OwnerRecursive ( )
inline

Destructor. Invokes ReleaseRecursive() on member owned.

Definition at line 260 of file owner.inl.


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