ddc
Public Member Functions | Public Attributes | List of all members
ddcLockable Class Reference

generic lockable object wrapper class More...

#include <ddcThread.h>

Inheritance diagram for ddcLockable:
Inheritance graph
[legend]

Public Member Functions

 ddcLockable ()
 
virtual ~ddcLockable ()
 
int lock () const
 
int unlock () const
 

Public Attributes

pthread_mutex_t m_Mutex
 

Detailed Description

generic lockable object wrapper class

Constructor & Destructor Documentation

◆ ddcLockable()

ddcLockable::ddcLockable ( )
inline

default constructor initializes mutex

◆ ~ddcLockable()

virtual ddcLockable::~ddcLockable ( )
inlinevirtual

default constructor de-initializes mutex

Member Function Documentation

◆ lock()

int ddcLockable::lock ( ) const
inline

locks m_Mutex for exclusive access; wraps pthread_mutex_lock()

Referenced by CConcSessionContext::CacheClear(), CConcSessionContext::CacheGet(), CConcSessionContext::CacheSet(), CConcSessionContext::CacheSize(), ddcFileOrMMap::Close(), ddcFileOrMMap::Open(), and ddcFileOrMMap::ReadFromFile().

Here is the caller graph for this function:

◆ unlock()

int ddcLockable::unlock ( ) const
inline

Member Data Documentation

◆ m_Mutex

pthread_mutex_t ddcLockable::m_Mutex
mutable

mutex for locking


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