ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
OwnerShared< TOwnable > Class Template Reference

Description:

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

Similar to class Owner, but calls methods AcquireShared and ReleaseShared.

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 AcquireShared and ReleaseShared available.

Definition at line 281 of file owner.hpp.

#include <owner.hpp>

Collaboration diagram for OwnerShared< TOwnable >:
[legend]

Public Method Index:

 OwnerShared (TOwnable &ownable, const CallerInfo &ci)
 
 ~OwnerShared ()
 Destructor. Invokes ReleaseShared() 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 288 of file owner.hpp.

◆ owned

template<typename TOwnable >
TOwnable& owned
protected

The resource to acquire and release.

Definition at line 286 of file owner.hpp.

Constructor(s) / Destructor Details:

◆ OwnerShared()

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

Constructor. Invokes AcquireShared() on member owned.

Parameters
ownableThe ownable to acquire.
ciCaller information.

Definition at line 309 of file owner.hpp.

◆ ~OwnerShared()

template<typename TOwnable >
~OwnerShared ( )
inline

Destructor. Invokes ReleaseShared() on member owned.

Definition at line 318 of file owner.hpp.


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