CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
Myth::Lockable Class Reference

Data Structures

class  ExclusiveGuard
class  SharedGuard

Public Member Functions

void Lock ()
void Unlock ()
void LockShared ()
void UnlockShared ()

Private Member Functions

 Lockable (const Lockable &)
Lockable & operator= (const Lockable &)

Private Attributes

OS::Latch * m_lock

Detailed Description

Definition at line 35 of file mythlocked.h.

Constructor & Destructor Documentation

◆ Lockable()

Lockable::Lockable ( )

Definition at line 29 of file mythlocked.cpp.

◆ ~Lockable()

Lockable::~Lockable ( )

Definition at line 32 of file mythlocked.cpp.

Member Function Documentation

◆ Lock()

void Lockable::Lock ( )

Blocks until exclusive lock is held.

Definition at line 37 of file mythlocked.cpp.

◆ LockShared()

void Lockable::LockShared ( )

Blocks until shared lock is held.

Definition at line 47 of file mythlocked.cpp.

◆ Unlock()

void Lockable::Unlock ( )

Release exclusive lock.

Definition at line 42 of file mythlocked.cpp.

◆ UnlockShared()

void Lockable::UnlockShared ( )

Release shared lock.

Definition at line 52 of file mythlocked.cpp.

Field Documentation

◆ m_lock

OS::Latch* Myth::Lockable::m_lock
private

Definition at line 97 of file mythlocked.h.


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