ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::lang::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 271 of file owner.inl.

Collaboration diagram for alib::lang::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 alib::lang::OwnerShared< TOwnable >::dbgCI
protected

Caller information. Available only with debug-builds.

Definition at line 278 of file owner.inl.

◆ owned

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

The resource to acquire and release.

Definition at line 276 of file owner.inl.

Constructor(s) / Destructor Details:

◆ OwnerShared()

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

Constructor. Invokes AcquireShared() on member owned.

Parameters
ownableThe ownable to acquire.
ciCaller information.

Definition at line 299 of file owner.inl.

◆ ~OwnerShared()

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

Destructor. Invokes ReleaseShared() on member owned.

Definition at line 308 of file owner.inl.


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