71 #include "gw-config.h" 72 #ifdef HAVE_SYS_POLL_H 77 #define MAIN_THREAD_ID 0 90 #define gwthread_create(func, arg) \ 91 (gwthread_create_real(func, __FILE__ ":" #func, arg)) void gwthread_self_ids(long *tid, long *pid)
void gwthread_join_all(void)
long gwthread_self_pid(void)
void gwthread_join_every(gwthread_func_t *func)
void gwthread_sleep_micro(double dseconds)
void gwthread_wakeup(long thread)
void gwthread_sleep(double seconds)
int gwthread_poll(struct pollfd *fds, long numfds, double timeout)
void gwthread_func_t(void *arg)
long gwthread_create_real(gwthread_func_t *func, const char *funcname, void *arg)
int gwthread_pollfd(int fd, int events, double timeout)
int gwthread_shouldhandlesignal(int signal)
int gwthread_cancel(long thread)
void gwthread_shutdown(void)
void gwthread_wakeup_all(void)
int gwthread_dumpsigmask(void)
void gwthread_join(long thread)