Cond Class Reference

#include <sync.h>

Inheritance diagram for Cond:
zmm::Object

Public Member Functions

 Cond (zmm::Ref< Mutex > mutex)
virtual ~Cond ()
void signal ()
void broadcast ()
void wait ()
int timedwait (struct timespec *timeout)
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

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

Protected Attributes

pthread_cond_t cond_struct
zmm::Ref< Mutexmutex
mt_atomic_t _ref_count

Detailed Description

Definition at line 110 of file sync.h.


Constructor & Destructor Documentation

Cond::Cond ( zmm::Ref< Mutex mutex  ) 

Definition at line 136 of file sync.cc.

References cond_struct, and NULL.

Cond::~Cond (  )  [virtual]

Definition at line 142 of file sync.cc.

References cond_struct.


Member Function Documentation

void Cond::broadcast (  )  [inline]

Definition at line 116 of file sync.h.

References cond_struct.

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 Object::retain (  )  [inherited]
void Cond::signal (  )  [inline]

Definition at line 115 of file sync.h.

References cond_struct.

int Cond::timedwait ( struct timespec *  timeout  )  [inline]

Definition at line 119 of file sync.h.

References cond_struct.

void Cond::wait (  )  [inline]

Definition at line 118 of file sync.h.

References cond_struct.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
pthread_cond_t Cond::cond_struct [protected]

Definition at line 126 of file sync.h.

Referenced by broadcast(), Cond(), signal(), timedwait(), wait(), and ~Cond().

zmm::Ref<Mutex> Cond::mutex [protected]

Reimplemented from zmm::Object.

Definition at line 127 of file sync.h.


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

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