1 #include "threads_impl.h"
2 
pthread_cond_init(pthread_cond_t * restrict c,const pthread_condattr_t * restrict a)3 int pthread_cond_init(pthread_cond_t* restrict c, const pthread_condattr_t* restrict a) {
4     *c = (pthread_cond_t){};
5     if (a) {
6         c->_c_clock = a->__attr & 0x7fffffff;
7     }
8     return 0;
9 }
10