CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
Myth::Locked< T > Class Template Reference
Collaboration diagram for Myth::Locked< T >:

Data Structures

class  pointer
class  const_pointer

Public Member Functions

 Locked (const T &val)
Load ()
const T & Store (const T &newval)
pointer GetExclusive ()
const_pointer GetShared ()

Protected Member Functions

 Locked (const Locked< T > &other)
Locked< T > & operator= (const Locked< T > &other)

Protected Attributes

m_val
Lockable m_latch

Detailed Description

template<typename T>
class Myth::Locked< T >

Definition at line 106 of file mythlocked.h.

Constructor & Destructor Documentation

◆ Locked() [1/2]

template<typename T>
Myth::Locked< T >::Locked ( )
inline

Definition at line 109 of file mythlocked.h.

◆ Locked() [2/2]

template<typename T>
Myth::Locked< T >::Locked ( const T & val)
inline

Definition at line 112 of file mythlocked.h.

◆ ~Locked()

template<typename T>
Myth::Locked< T >::~Locked ( )
inline

Definition at line 115 of file mythlocked.h.

Member Function Documentation

◆ GetExclusive()

template<typename T>
pointer Myth::Locked< T >::GetExclusive ( )
inline

Definition at line 178 of file mythlocked.h.

◆ GetShared()

template<typename T>
const_pointer Myth::Locked< T >::GetShared ( )
inline

Definition at line 231 of file mythlocked.h.

◆ Load()

template<typename T>
T Myth::Locked< T >::Load ( )
inline

Definition at line 117 of file mythlocked.h.

◆ Store()

template<typename T>
const T & Myth::Locked< T >::Store ( const T & newval)
inline

Definition at line 123 of file mythlocked.h.

Field Documentation

◆ m_latch

template<typename T>
Lockable Myth::Locked< T >::m_latch
protected

Definition at line 244 of file mythlocked.h.

◆ m_val

template<typename T>
T Myth::Locked< T >::m_val
protected

Definition at line 243 of file mythlocked.h.


The documentation for this class was generated from the following file:
  • /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/mythlocked.h