27#ifndef INCLUDED_WPTHREAD
28#define INCLUDED_WPTHREAD
47#define sched_get_priority_max(policy) +2
48#define sched_get_priority_min(policy) -2
77#define PTHREAD_MUTEX_INITIALIZER pthread_mutex_initializer()
Definition: wpthread.h:35
int sched_priority
Definition: wpthread.h:36
std::atomic< dtortype > dtor
Definition: wpthread.cpp:142
int sem_destroy(sem_t *)
Definition: wpthread.cpp:456
int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param)
Definition: wpthread.cpp:104
int pthread_mutex_timedlock(pthread_mutex_t *, const struct timespec *)
Definition: wpthread.cpp:360
int pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
Definition: wpthread.cpp:280
int sem_wait(sem_t *)
Definition: wpthread.cpp:470
int pthread_mutex_unlock(pthread_mutex_t *)
Definition: wpthread.cpp:349
uintptr_t sem_t
Definition: wpthread.h:98
int sem_close(sem_t *sem)
Definition: wpthread.cpp:431
void * pthread_mutex_t
Definition: wpthread.h:75
uintptr_t pthread_t
Definition: wpthread.h:56
int pthread_key_create(pthread_key_t *, void(*dtor)(void *))
Definition: wpthread.cpp:147
void * pthread_getspecific(pthread_key_t)
Definition: wpthread.cpp:186
pthread_t pthread_self()
Definition: wpthread.cpp:82
int sem_unlink(const char *name)
Definition: wpthread.cpp:440
int pthread_mutex_trylock(pthread_mutex_t *)
Definition: wpthread.cpp:340
unsigned int pthread_key_t
Definition: wpthread.h:86
int pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *type)
Definition: wpthread.cpp:285
sem_t * sem_open(const char *name, int oflag,...)
Definition: wpthread.cpp:375
int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
Definition: wpthread.cpp:291
int pthread_mutex_destroy(pthread_mutex_t *)
Definition: wpthread.cpp:314
int pthread_key_delete(pthread_key_t)
Definition: wpthread.cpp:175
int sem_msgwait_np(sem_t *sem)
Definition: wpthread.cpp:493
int pthread_equal(pthread_t t1, pthread_t t2)
Definition: wpthread.cpp:77
int pthread_cancel(pthread_t thread)
Definition: wpthread.cpp:604
int pthread_mutex_lock(pthread_mutex_t *)
Definition: wpthread.cpp:331
int pthread_join(pthread_t thread, void **value_ptr)
Definition: wpthread.cpp:613
int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param)
Definition: wpthread.cpp:88
pthread_mutex_t pthread_mutex_initializer()
Definition: wpthread.cpp:307
int sem_post(sem_t *)
Definition: wpthread.cpp:463
int sem_timedwait(sem_t *, const struct timespec *)
int pthread_setspecific(pthread_key_t, const void *value)
Definition: wpthread.cpp:212
int pthread_create(pthread_t *thread, const void *attr, void *(*func)(void *), void *arg)
Definition: wpthread.cpp:570
void * pthread_mutexattr_t
Definition: wpthread.h:68
@ PTHREAD_MUTEX_RECURSIVE
Definition: wpthread.h:71
int sem_init(sem_t *, int pshared, unsigned value)
Definition: wpthread.cpp:446
int pthread_mutex_init(pthread_mutex_t *, const pthread_mutexattr_t *)
Definition: wpthread.cpp:325
int pthread_mutexattr_init(pthread_mutexattr_t *attr)
Definition: wpthread.cpp:275
@ SCHED_OTHER
Definition: wpthread.h:43
@ SCHED_RR
Definition: wpthread.h:41
@ SCHED_FIFO
Definition: wpthread.h:42