#include <sync.h>
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< Mutex > | mutex |
| mt_atomic_t | _ref_count |
Definition at line 110 of file sync.h.
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.
| 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] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| void Object::release | ( | ) | [inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| void Object::retain | ( | ) | [inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
| 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.
mt_atomic_t zmm::Object::_ref_count [protected, inherited] |
Definition at line 54 of file object.h.
Referenced by zmm::Object::getRefCount(), zmm::Object::Object(), zmm::Object::release(), and zmm::Object::retain().
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.
1.6.1