00001 #ifndef _TDSIGNALS_H 00002 #define _TDSIGNALS_H 00003 00004 #include <pthread.h> 00005 00006 typedef pthread_t td_alarm_t; 00007 00008 int td_createalarm(unsigned int seconds, 00009 void (*shandler)(int, pthread_mutex_t *), 00010 pthread_mutex_t *mutex, 00011 pthread_t *alrmtd); 00012 void td_destroyalarm(td_alarm_t *alarm, pthread_mutex_t *mutex); 00013 00014 #endif /* _TDSIGNALS_H */