MutexAutolock Class Reference

#include <sync.h>

Inheritance diagram for MutexAutolock:
zmm::Object

Public Member Functions

 ~MutexAutolock ()
void unlock ()
void relock ()
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Member Functions

 MutexAutolock (zmm::Ref< Mutex > mutex, bool unlocked=false)

Protected Attributes

zmm::Ref< Mutexmutex
bool locked
pthread_mutex_t * pmutex
mt_atomic_t _ref_count

Friends

class Mutex

Detailed Description

Definition at line 49 of file sync.h.


Constructor & Destructor Documentation

MutexAutolock::~MutexAutolock (  )  [inline]

Definition at line 54 of file sync.h.

References locked, and pmutex.

MutexAutolock::MutexAutolock ( zmm::Ref< Mutex mutex,
bool  unlocked = false 
) [protected]

Definition at line 181 of file sync.cc.

References locked, and pmutex.


Member Function Documentation

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

References zmm::Object::_ref_count, and atomic_get().

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

void Object::release (  )  [inherited]
void MutexAutolock::relock (  )  [inline]

Definition at line 56 of file sync.h.

References locked, and pmutex.

void Object::retain (  )  [inherited]
void MutexAutolock::unlock (  )  [inline]

Definition at line 55 of file sync.h.

References locked, and pmutex.


Friends And Related Function Documentation

friend class Mutex [friend]

Definition at line 70 of file sync.h.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
bool MutexAutolock::locked [protected]

Definition at line 65 of file sync.h.

Referenced by MutexAutolock(), relock(), unlock(), and ~MutexAutolock().

Reimplemented from zmm::Object.

Definition at line 64 of file sync.h.

pthread_mutex_t* MutexAutolock::pmutex [protected]

Definition at line 67 of file sync.h.

Referenced by MutexAutolock(), relock(), unlock(), and ~MutexAutolock().


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

Generated on Fri Mar 26 20:16:57 2010 for MediaTomb by  doxygen 1.6.1