TimerThread.h File Reference

#include "ithread.h"
#include "LinkedList.h"
#include "FreeList.h"
#include "ThreadPool.h"

Go to the source code of this file.

Data Structures

struct  TIMERTHREAD
struct  TIMEREVENT

Defines

#define INVALID_EVENT_ID   (-10 & 1<<29)

Typedefs

typedef enum timeoutType TimeoutType
typedef struct TIMERTHREAD TimerThread
typedef struct TIMEREVENT TimerEvent

Enumerations

enum  timeoutType { ABS_SEC, REL_SEC }

Functions

int TimerThreadInit (TimerThread *timer, ThreadPool *tp)
int TimerThreadSchedule (TimerThread *timer, time_t time, TimeoutType type, ThreadPoolJob *job, Duration duration, int *id)
int TimerThreadRemove (TimerThread *timer, int id, ThreadPoolJob *out)
int TimerThreadShutdown (TimerThread *timer)

Define Documentation

#define INVALID_EVENT_ID   (-10 & 1<<29)

Definition at line 44 of file TimerThread.h.


Typedef Documentation

typedef enum timeoutType TimeoutType
typedef struct TIMEREVENT TimerEvent
typedef struct TIMERTHREAD TimerThread

Enumeration Type Documentation

Enumerator:
ABS_SEC 
REL_SEC 

Definition at line 49 of file TimerThread.h.


Function Documentation

int TimerThreadInit ( TimerThread timer,
ThreadPool tp 
)
int TimerThreadRemove ( TimerThread timer,
int  id,
ThreadPoolJob out 
)
int TimerThreadSchedule ( TimerThread timer,
time_t  time,
TimeoutType  type,
ThreadPoolJob job,
Duration  duration,
int *  id 
)
int TimerThreadShutdown ( TimerThread timer  ) 

Generated on Fri Mar 26 20:16:55 2010 for MediaTomb by  doxygen 1.6.1