48#define INVALID_EVENT_ID (-10 & 1<<29)
69 ithread_mutex_t mutex;
70 ithread_cond_t condition;
enum timeoutType TimeoutType
int TimerThreadShutdown(TimerThread *timer)
Shutdown the timer thread.
Definition: TimerThread.c:352
struct TIMEREVENT TimerEvent
struct TIMERTHREAD TimerThread
int TimerThreadInit(TimerThread *timer, ThreadPool *tp)
Initializes and starts timer thread.
Definition: TimerThread.c:189
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:245
timeoutType
Definition: TimerThread.h:51
@ ABS_SEC
Definition: TimerThread.h:53
@ REL_SEC
Definition: TimerThread.h:55
int TimerThreadRemove(TimerThread *timer, int id, ThreadPoolJob *out)
Removes an event from the timer Q.
Definition: TimerThread.c:314
Definition: FreeList.h:62
Definition: LinkedList.h:84
Definition: ThreadPool.h:164
A thread pool similar to the thread pool in the UPnP SDK.
Definition: ThreadPool.h:213
Definition: TimerThread.h:84
Duration persistent
Definition: TimerThread.h:89
time_t eventTime
Definition: TimerThread.h:87
Definition: TimerThread.h:68