1570af302Sopenharmony_ci#include "pthread_impl.h"
2570af302Sopenharmony_ci
3570af302Sopenharmony_ciint pthread_cond_init(pthread_cond_t *restrict c, const pthread_condattr_t *restrict a)
4570af302Sopenharmony_ci{
5570af302Sopenharmony_ci	__builtin_memset(c, 0, sizeof(pthread_cond_t));
6570af302Sopenharmony_ci	if (a) {
7570af302Sopenharmony_ci		c->_c_clock = a->__attr & 0x7fffffff;
8570af302Sopenharmony_ci		if (a->__attr>>31) c->_c_shared = (void *)-1;
9570af302Sopenharmony_ci	}
10570af302Sopenharmony_ci	return 0;
11570af302Sopenharmony_ci}
12