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

#include <owner.hpp>

Collaboration diagram for 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 dbgCI
protected

Caller information. Available only with debug-builds.

Definition at line 240 of file owner.hpp.

◆ owned

template<typename TOwnable >
TOwnable& owned
protected

The resource to acquire and release.

Definition at line 238 of file owner.hpp.

Constructor(s) / Destructor Details:

◆ OwnerRecursive()

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

Constructor. Invokes AcquireRecursive() on member owned.

Parameters
ownableThe ownable to acquire.
ciCaller information.

Definition at line 261 of file owner.hpp.

◆ ~OwnerRecursive()

template<typename TOwnable >
~OwnerRecursive ( )
inline

Destructor. Invokes ReleaseRecursive() on member owned.

Definition at line 270 of file owner.hpp.


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