27 #ifndef INCLUDED_WPTHREAD 28 #define INCLUDED_WPTHREAD 48 #define sched_get_priority_max(policy) +2 49 #define sched_get_priority_min(policy) -2 58 #define PTHREAD_ONCE_INIT 0 // static pthread_once_t x = PTHREAD_ONCE_INIT; 69 int pthread_create(pthread_t* thread,
const void* attr,
void* (*func)(
void*),
void* arg);
84 #define PTHREAD_MUTEX_INITIALIZER pthread_mutex_initializer() 109 sem_t*
sem_open(
const char* name,
int oflag, ...);
112 int sem_init(sem_t*,
int pshared,
unsigned value);
135 #endif // #ifndef INCLUDED_WPTHREAD void * pthread_mutex_t
Definition: wpthread.h:82
int pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *type)
Definition: wpthread.cpp:283
void(* dtor)(void *)
Definition: wpthread.cpp:141
int sched_priority
Definition: wpthread.h:37
intptr_t pthread_once_t
Definition: wpthread.h:57
int sem_init(sem_t *, int pshared, unsigned value)
Definition: wpthread.cpp:444
int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param)
Definition: wpthread.cpp:104
pthread_t pthread_self()
Definition: wpthread.cpp:74
Definition: wpthread.h:42
int pthread_mutex_destroy(pthread_mutex_t *)
Definition: wpthread.cpp:312
int sem_msgwait_np(sem_t *sem)
Definition: wpthread.cpp:491
int pthread_mutexattr_init(pthread_mutexattr_t *attr)
Definition: wpthread.cpp:273
Definition: wpthread.h:35
int pthread_once(pthread_once_t *, void(*init_routine)())
Definition: wpthread.cpp:80
int pthread_key_delete(pthread_key_t)
Definition: wpthread.cpp:173
int sem_post(sem_t *)
Definition: wpthread.cpp:461
int pthread_cancel(pthread_t thread)
Definition: wpthread.cpp:604
int sem_unlink(const char *name)
Definition: wpthread.cpp:438
int pthread_mutex_timedlock(pthread_mutex_t *, const struct timespec *)
Definition: wpthread.cpp:358
int pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
Definition: wpthread.cpp:278
sem_t * sem_open(const char *name, int oflag,...)
Definition: wpthread.cpp:373
int pthread_setspecific(pthread_key_t, const void *value)
Definition: wpthread.cpp:210
void * pthread_mutexattr_t
Definition: wpthread.h:75
int pthread_mutex_unlock(pthread_mutex_t *)
Definition: wpthread.cpp:347
int pthread_mutex_lock(pthread_mutex_t *)
Definition: wpthread.cpp:329
int pthread_key_create(pthread_key_t *, void(*dtor)(void *))
Definition: wpthread.cpp:146
uintptr_t sem_t
Definition: wpthread.h:105
int sem_timedwait(sem_t *, const struct timespec *)
int pthread_mutex_init(pthread_mutex_t *, const pthread_mutexattr_t *)
Definition: wpthread.cpp:323
int pthread_equal(pthread_t t1, pthread_t t2)
Definition: wpthread.cpp:69
int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param)
Definition: wpthread.cpp:88
int pthread_join(pthread_t thread, void **value_ptr)
Definition: wpthread.cpp:613
int sem_wait(sem_t *)
Definition: wpthread.cpp:468
uintptr_t pthread_t
Definition: wpthread.h:63
int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
Definition: wpthread.cpp:289
Definition: wpthread.h:44
void * pthread_getspecific(pthread_key_t)
Definition: wpthread.cpp:184
pthread_mutex_t pthread_mutex_initializer()
Definition: wpthread.cpp:305
int sem_destroy(sem_t *)
Definition: wpthread.cpp:454
Definition: wpthread.h:78
unsigned int pthread_key_t
Definition: wpthread.h:93
Definition: wpthread.h:43
int sem_close(sem_t *sem)
Definition: wpthread.cpp:429
int pthread_mutex_trylock(pthread_mutex_t *)
Definition: wpthread.cpp:338
int pthread_create(pthread_t *thread, const void *attr, void *(*func)(void *), void *arg)
Definition: wpthread.cpp:570