Destroyer Class Reference

#include <destroyer.h>

Inheritance diagram for Destroyer:
zmm::Object

Public Member Functions

 Destroyer (void(*destroy_func)(void *), void *data)
virtual ~Destroyer ()
void destroy ()
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

void * data
void(* destroy_func )(void *)
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

Definition at line 37 of file destroyer.h.


Constructor & Destructor Documentation

Destroyer::Destroyer ( void(*)(void *)  destroy_func,
void *  data 
)

Definition at line 40 of file destroyer.cc.

References destroy_func.

Destroyer::~Destroyer (  )  [virtual]

Definition at line 45 of file destroyer.cc.

References destroy().


Member Function Documentation

void Destroyer::destroy (  ) 

Definition at line 49 of file destroyer.cc.

References data, destroy_func, and NULL.

Referenced by ~Destroyer().

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]

Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
void* Destroyer::data [protected]

Definition at line 40 of file destroyer.h.

Referenced by destroy().

void(* Destroyer::destroy_func)(void *) [protected]

Referenced by destroy(), and Destroyer().

pthread_mutex_t zmm::Object::mutex [protected, inherited]

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