CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
NSROOT::OS::ReadLock Class Reference
Collaboration diagram for NSROOT::OS::ReadLock:

Data Structures

struct  adopt_lock_t

Public Member Functions

 ReadLock (Latch &latch)
 ReadLock (Latch &latch, adopt_lock_t)
void swap (ReadLock &rl)
bool owns_lock () const
void lock ()
void unlock ()
bool try_lock ()
 ReadLock (const ReadLock &other)=delete
ReadLock & operator= (const ReadLock &other)=delete

Static Public Attributes

static struct NSROOT::OS::ReadLock::adopt_lock_t adopt_lock

Private Attributes

Latchp
bool owns

Detailed Description

Definition at line 106 of file latch.h.

Constructor & Destructor Documentation

◆ ReadLock() [1/3]

NSROOT::OS::ReadLock::ReadLock ( )
inline

Definition at line 116 of file latch.h.

◆ ReadLock() [2/3]

NSROOT::OS::ReadLock::ReadLock ( Latch & latch)
inline

Definition at line 118 of file latch.h.

◆ ReadLock() [3/3]

NSROOT::OS::ReadLock::ReadLock ( Latch & latch,
adopt_lock_t  )
inline

Definition at line 121 of file latch.h.

◆ ~ReadLock()

NSROOT::OS::ReadLock::~ReadLock ( )
inline

Definition at line 123 of file latch.h.

Member Function Documentation

◆ lock()

void NSROOT::OS::ReadLock::lock ( )
inline

Definition at line 146 of file latch.h.

◆ owns_lock()

bool NSROOT::OS::ReadLock::owns_lock ( ) const
inline

Definition at line 141 of file latch.h.

◆ swap()

void NSROOT::OS::ReadLock::swap ( ReadLock & rl)
inline

Definition at line 131 of file latch.h.

◆ try_lock()

bool NSROOT::OS::ReadLock::try_lock ( )
inline

Definition at line 164 of file latch.h.

◆ unlock()

void NSROOT::OS::ReadLock::unlock ( )
inline

Definition at line 155 of file latch.h.

Field Documentation

◆ owns

bool NSROOT::OS::ReadLock::owns
private

Definition at line 110 of file latch.h.

◆ p

Latch* NSROOT::OS::ReadLock::p
private

Definition at line 109 of file latch.h.


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