48#define INVALID_EVENT_ID (-10 & 1 << 29)
70 ithread_mutex_t mutex;
71 ithread_cond_t condition;
enum timeoutType TimeoutType
int TimerThreadShutdown(TimerThread *timer)
Shutdown the timer thread.
Definition TimerThread.c:355
struct TIMEREVENT TimerEvent
struct TIMERTHREAD TimerThread
int TimerThreadInit(TimerThread *timer, ThreadPool *tp)
Initializes and starts timer thread.
Definition TimerThread.c:197
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
timeoutType
Definition TimerThread.h:52
@ ABS_SEC
Definition TimerThread.h:54
@ REL_SEC
Definition TimerThread.h:56
int TimerThreadRemove(TimerThread *timer, int id, ThreadPoolJob *out)
Removes an event from the timer Q.
Definition TimerThread.c:321
Definition LinkedList.h:84
Definition ThreadPool.h:168
A thread pool similar to the thread pool in the UPnP SDK.
Definition ThreadPool.h:217
Definition TimerThread.h:85
Duration persistent
Definition TimerThread.h:90
time_t eventTime
Definition TimerThread.h:88
Definition TimerThread.h:69