48 #define INVALID_EVENT_ID (-10 & 1<<29)
69 ithread_mutex_t mutex;
70 ithread_cond_t condition;
Definition: TimerThread.h:55
Definition: TimerThread.h:67
int TimerThreadInit(TimerThread *timer, ThreadPool *tp)
Initializes and starts timer thread.
Definition: TimerThread.c:182
A thread pool similar to the thread pool in the UPnP SDK.
Definition: ThreadPool.h:212
time_t eventTime
Definition: TimerThread.h:87
Definition: FreeList.h:61
int TimerThreadShutdown(TimerThread *timer)
Shutdown the timer thread.
Definition: TimerThread.c:345
timeoutType
Definition: TimerThread.h:51
Duration persistent
Definition: TimerThread.h:89
enum timeoutType TimeoutType
Definition: TimerThread.h:83
Definition: ThreadPool.h:163
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:238
int TimerThreadRemove(TimerThread *timer, int id, ThreadPoolJob *out)
Removes an event from the timer Q.
Definition: TimerThread.c:307
struct TIMERTHREAD TimerThread
Definition: TimerThread.h:53
Definition: LinkedList.h:83
struct TIMEREVENT TimerEvent