void xpthread_barrier_init (pthread_barrier_t *barrier, pthread_barrierattr_t *attr, unsigned int count) { xpthread_check_return ("pthread_barrier_init", pthread_barrier_init (barrier, attr, count)); }
void xpthread_rwlockattr_setkind_np (pthread_rwlockattr_t *attr, int pref) { xpthread_check_return ("pthread_rwlockattr_setkind_np", pthread_rwlockattr_setkind_np (attr, pref)); }
void * xpthread_join (pthread_t thr) { void *result; xpthread_check_return ("pthread_join", pthread_join (thr, &result)); return result; }
pthread_t xpthread_create (pthread_attr_t *attr, void *(*thread_func) (void *), void *closure) { pthread_t thr; xpthread_check_return ("pthread_create", pthread_create (&thr, attr, thread_func, closure)); return thr; }
void xpthread_rwlock_rdlock (pthread_rwlock_t *rwlock) { xpthread_check_return ("pthread_rwlock_rdlock", pthread_rwlock_rdlock (rwlock)); }
void xpthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared) { xpthread_check_return ("pthread_barrierattr_setpshared", pthread_barrierattr_setpshared (attr, pshared)); }
void xpthread_spin_unlock (pthread_spinlock_t *lock) { xpthread_check_return ("pthread_spin_unlock", pthread_spin_unlock (lock)); }
void xpthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex) { xpthread_check_return ("pthread_cond_wait", pthread_cond_wait (cond, mutex)); }
void xpthread_mutexattr_settype (pthread_mutexattr_t *attr, int flag) { xpthread_check_return ("pthread_mutexattr_settype", pthread_mutexattr_settype (attr, flag)); }
void xpthread_mutex_unlock (pthread_mutex_t *mutex) { xpthread_check_return ("pthread_mutex_unlock", pthread_mutex_unlock (mutex)); }
void xpthread_attr_destroy (pthread_attr_t *attr) { xpthread_check_return ("pthread_attr_destroy", pthread_attr_destroy (attr)); }
void xpthread_detach (pthread_t thr) { xpthread_check_return ("pthread_detach", pthread_detach (thr)); }