#ifndef __W3THREAD_H #define __W3THREAD_H #include <config.h> #ifdef HAVE_LIBPTHREAD #include <pthread.h> #include <w3types.h> typedef struct { void *startRoutine; void *arg; pthread_t ID; pthread_attr_t attr; } w3Thread; w3Thread* w3ThreadRun (void* start_func, void* arg); boolean w3ThreadJoin (w3Thread *t); boolean w3ThreadDestroy (w3Thread *t); #endif #endif