UpdateManager Class Reference

#include <update_manager.h>

Inheritance diagram for UpdateManager:
Singleton< UpdateManager > zmm::Object

Public Member Functions

 UpdateManager ()
virtual void shutdown ()
virtual void init ()
void containerChanged (int objectID, int flushPolicy=FLUSH_SPEC)
void containersChanged (zmm::Ref< zmm::IntArray > objectIDs, int flushPolicy=FLUSH_SPEC)
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static zmm::Ref< UpdateManagergetInstance ()
static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Member Functions

void threadProc ()
bool haveUpdates ()
virtual void registerSingleton ()

Static Protected Member Functions

static void * staticThreadProc (void *arg)

Protected Attributes

pthread_t updateThread
zmm::Ref< Condcond
zmm::Ref< DBRHash< int > > objectIDHash
bool shutdownFlag
int flushPolicy
int lastContainerChanged
mt_atomic_t _ref_count

Static Protected Attributes

static zmm::Ref< Mutexmutex
static zmm::Ref< UpdateManagerinstance
static bool singletonActive

Detailed Description

Definition at line 43 of file update_manager.h.

Constructor & Destructor Documentation

UpdateManager::UpdateManager (  ) 

Member Function Documentation

void UpdateManager::containerChanged ( int  objectID,
int  flushPolicy = FLUSH_SPEC 
void UpdateManager::containersChanged ( zmm::Ref< zmm::IntArray objectIDs,
int  flushPolicy = FLUSH_SPEC 
static zmm::Ref<UpdateManager > Singleton< UpdateManager >::getInstance (  )  [inline, static, inherited]

Definition at line 62 of file singleton.h.

Referenced by FileRequestHandler::open(), staticThreadProc(), and threadProc().

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

bool UpdateManager::haveUpdates (  )  [inline, protected]

Definition at line 68 of file update_manager.h.

References objectIDHash.

Referenced by containerChanged(), containersChanged(), and threadProc().

void UpdateManager::init (  )  [virtual]

Reimplemented from Singleton< UpdateManager >.

Definition at line 65 of file update_manager.cc.

References NULL, staticThreadProc(), and updateThread.

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.

virtual void Singleton< UpdateManager >::registerSingleton (  )  [inline, protected, virtual, inherited]

Definition at line 94 of file singleton.h.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
void UpdateManager::shutdown (  )  [virtual]
void * UpdateManager::staticThreadProc ( void *  arg  )  [static, protected]

Definition at line 289 of file update_manager.cc.

References Singleton< UpdateManager >::getInstance(), log_debug, NULL, and threadProc().

Referenced by init().

void UpdateManager::threadProc (  )  [protected]

Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
int UpdateManager::flushPolicy [protected]

Definition at line 61 of file update_manager.h.

Referenced by threadProc(), and UpdateManager().

zmm::Ref<UpdateManager > Singleton< UpdateManager >::instance [static, protected, inherited]

Definition at line 91 of file singleton.h.

Definition at line 63 of file update_manager.h.

Referenced by containerChanged(), containersChanged(), threadProc(), and UpdateManager().

zmm::Ref<Mutex> Singleton< UpdateManager >::mutex [static, protected, inherited]

Reimplemented from zmm::Object.

Definition at line 90 of file singleton.h.

Referenced by containerChanged(), containersChanged(), shutdown(), threadProc(), and UpdateManager().

bool UpdateManager::shutdownFlag [protected]

Definition at line 60 of file update_manager.h.

Referenced by shutdown(), threadProc(), and UpdateManager().

bool Singleton< UpdateManager >::singletonActive [static, protected, inherited]

Definition at line 92 of file singleton.h.

pthread_t UpdateManager::updateThread [protected]

Definition at line 55 of file update_manager.h.

Referenced by init(), and shutdown().

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