#include <timer.h>
Public Member Functions | |
| TimerSubscriberElement (zmm::Ref< T > subscriber, unsigned int notifyInterval, zmm::Ref< zmm::Object > parameter, bool once=false) | |
| unsigned int | getNotifyInterval () |
| zmm::Ref< T > | getSubscriber () |
| void | notified () |
| struct timespec * | getNextNotify () |
| zmm::Ref< zmm::Object > | getParameter () |
| bool | equals (zmm::Ref< TimerSubscriberElement > other) |
| bool | isOnce () |
| 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 | |
| zmm::Ref< T > | subscriber |
| unsigned int | notifyInterval |
| zmm::Ref< zmm::Object > | parameter |
| struct timespec | nextNotify |
| bool | once |
| mt_atomic_t | _ref_count |
| pthread_mutex_t | mutex |
Definition at line 125 of file timer.h.
| Timer::TimerSubscriberElement< T >::TimerSubscriberElement | ( | zmm::Ref< T > | subscriber, | |
| unsigned int | notifyInterval, | |||
| zmm::Ref< zmm::Object > | parameter, | |||
| bool | once = false | |||
| ) | [inline] |
Definition at line 128 of file timer.h.
References Timer::TimerSubscriberElement< T >::notified(), and Timer::TimerSubscriberElement< T >::once.
| bool Timer::TimerSubscriberElement< T >::equals | ( | zmm::Ref< TimerSubscriberElement< T > > | other | ) | [inline] |
Definition at line 141 of file timer.h.
References Timer::TimerSubscriberElement< T >::parameter, and Timer::TimerSubscriberElement< T >::subscriber.
| struct timespec* Timer::TimerSubscriberElement< T >::getNextNotify | ( | ) | [inline, read] |
Definition at line 139 of file timer.h.
References Timer::TimerSubscriberElement< T >::nextNotify.
| unsigned int Timer::TimerSubscriberElement< T >::getNotifyInterval | ( | ) | [inline] |
Definition at line 136 of file timer.h.
References Timer::TimerSubscriberElement< T >::notifyInterval.
| zmm::Ref<zmm::Object> Timer::TimerSubscriberElement< T >::getParameter | ( | ) | [inline] |
Definition at line 140 of file timer.h.
References Timer::TimerSubscriberElement< T >::parameter.
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| zmm::Ref<T> Timer::TimerSubscriberElement< T >::getSubscriber | ( | ) | [inline] |
Definition at line 137 of file timer.h.
References Timer::TimerSubscriberElement< T >::subscriber.
| bool Timer::TimerSubscriberElement< T >::isOnce | ( | ) | [inline] |
Definition at line 142 of file timer.h.
References Timer::TimerSubscriberElement< T >::once.
| void Timer::TimerSubscriberElement< T >::notified | ( | ) | [inline] |
Definition at line 138 of file timer.h.
References getTimespecAfterMillis(), Timer::TimerSubscriberElement< T >::nextNotify, and Timer::TimerSubscriberElement< T >::notifyInterval.
Referenced by Timer::TimerSubscriberElement< T >::TimerSubscriberElement().
| 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().
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_mutex_t zmm::Object::mutex [protected, inherited] |
Reimplemented in AutoscanList, AutoscanInotify, CachedURL, Dictionary_r, DVDNavReader, IOHandlerBufferHelper, ReentrantArray< T >, SingletonManager, Singleton< T >, StorageCache, MutexAutolock, Cond, ThreadExecutor, Singleton< UpdateManager >, Singleton< Timer >, Singleton< ContentDirectoryService >, Singleton< ConfigManager >, Singleton< Server >, Singleton< Runtime >, Singleton< ContentManager >, Singleton< ConnectionManagerService >, Singleton< PlayHook >, Singleton< Storage >, and Singleton< SessionManager >.
Definition at line 56 of file object.h.
Referenced by zmm::Object::Object(), zmm::Object::release(), zmm::Object::retain(), and zmm::Object::~Object().
struct timespec Timer::TimerSubscriberElement< T >::nextNotify [read, protected] |
Definition at line 147 of file timer.h.
Referenced by Timer::TimerSubscriberElement< T >::getNextNotify(), and Timer::TimerSubscriberElement< T >::notified().
unsigned int Timer::TimerSubscriberElement< T >::notifyInterval [protected] |
Definition at line 145 of file timer.h.
Referenced by Timer::TimerSubscriberElement< T >::getNotifyInterval(), and Timer::TimerSubscriberElement< T >::notified().
bool Timer::TimerSubscriberElement< T >::once [protected] |
Definition at line 148 of file timer.h.
Referenced by Timer::TimerSubscriberElement< T >::isOnce(), and Timer::TimerSubscriberElement< T >::TimerSubscriberElement().
zmm::Ref<zmm::Object> Timer::TimerSubscriberElement< T >::parameter [protected] |
Definition at line 146 of file timer.h.
Referenced by Timer::TimerSubscriberElement< T >::equals(), and Timer::TimerSubscriberElement< T >::getParameter().
zmm::Ref<T> Timer::TimerSubscriberElement< T >::subscriber [protected] |
Definition at line 144 of file timer.h.
Referenced by Timer::TimerSubscriberElement< T >::equals(), and Timer::TimerSubscriberElement< T >::getSubscriber().
1.6.1