30 #define WTREAD_GNUC1 ( __GNUC__ * 1000 ) + __GNUC_MINOR__ 31 #if WTREAD_GNUC1 < 4008 43 #ifndef _RL_WTHREAD_H_ 44 typedef unsigned long int pthread_t;
56 struct __sched_param __schedparam;
65 typedef HANDLE pthread_mutex_t;
67 typedef long pthread_mutexattr_t;
72 #ifndef WIN_PTHREADS_H 78 #ifndef _RL_WTHREAD_H_ 102 void *(*func)(
void*),
void *arg);
int pvwait_semaphore(WSEMAPHORE *s)
int pvthread_join(pthread_t tid, void **status)
pthread_cond_t cond
Definition: wthread.h:88
int pvincrement_semaphore(WSEMAPHORE *s)
int nready
Definition: wthread.h:86
int cmax
Definition: wthread.h:85
int pvthread_mutex_lock(pthread_mutex_t *mptr)
int pvinit_semaphore(WSEMAPHORE *s, int cmax)
pthread_mutex_t mutex
Definition: wthread.h:87
int pvthread_mutex_unlock(pthread_mutex_t *mptr)
int pvthread_attr_init(pthread_attr_t *attr)
int pvthread_mutex_init(pthread_mutex_t *mptr, const pthread_mutexattr_t *attr)
int pvthread_cancel(pthread_t tid)
int pvthread_mutex_destroy(pthread_mutex_t *mptr)
void pvthread_close_handle(pthread_t *tid)
int pvthread_sleep(long msec)
void pvthread_exit(void *status)
int pvthread_mutex_trylock(pthread_mutex_t *mptr)
int pvthread_create(pthread_t *tid, const pthread_attr_t *attr, void *(*func)(void *), void *arg)