Example #1
0
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));
}
Example #2
0
void
xpthread_rwlockattr_setkind_np (pthread_rwlockattr_t *attr,
				int pref)
{
  xpthread_check_return ("pthread_rwlockattr_setkind_np",
                         pthread_rwlockattr_setkind_np (attr, pref));
}
Example #3
0
void *
xpthread_join (pthread_t thr)
{
  void *result;
  xpthread_check_return ("pthread_join", pthread_join (thr, &result));
  return result;
}
Example #4
0
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));
}
Example #6
0
void
xpthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared)
{
  xpthread_check_return ("pthread_barrierattr_setpshared",
                         pthread_barrierattr_setpshared (attr, pshared));
}
Example #7
0
void
xpthread_spin_unlock (pthread_spinlock_t *lock)
{
  xpthread_check_return ("pthread_spin_unlock", pthread_spin_unlock (lock));
}
Example #8
0
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));
}
Example #10
0
void
xpthread_mutex_unlock (pthread_mutex_t *mutex)
{
  xpthread_check_return ("pthread_mutex_unlock", pthread_mutex_unlock (mutex));
}
Example #11
0
void
xpthread_attr_destroy (pthread_attr_t *attr)
{
  xpthread_check_return ("pthread_attr_destroy",
			 pthread_attr_destroy (attr));
}
Example #12
0
void
xpthread_detach (pthread_t thr)
{
  xpthread_check_return ("pthread_detach", pthread_detach (thr));
}