53 #define INVALID_EVENT_ID (-10 & 1<<29)
59 typedef enum timeoutType {ABS_SEC,REL_SEC} TimeoutType;
73 ithread_mutex_t mutex;
74 ithread_cond_t condition;
Definition: TimerThread.h:71
int TimerThreadInit(TimerThread *timer, ThreadPool *tp)
Initializes and starts timer thread.
Definition: TimerThread.c:195
A thread pool similar to the thread pool in the UPnP SDK.
Definition: ThreadPool.h:266
time_t eventTime
Definition: TimerThread.h:92
Definition: FreeList.h:73
int TimerThreadShutdown(TimerThread *timer)
Shutdown the timer thread.
Definition: TimerThread.c:373
Duration persistent
Definition: TimerThread.h:94
Definition: TimerThread.h:88
Definition: ThreadPool.h:210
int TimerThreadSchedule(TimerThread *timer, time_t time, TimeoutType type, ThreadPoolJob *job, Duration duration, int *id)
Schedules an event to run at a specified time.
Definition: TimerThread.c:253
int TimerThreadRemove(TimerThread *timer, int id, ThreadPoolJob *out)
Removes an event from the timer Q.
Definition: TimerThread.c:334
struct TIMERTHREAD TimerThread
Definition: LinkedList.h:111
struct TIMEREVENT TimerEvent