blob: f098be0b7bad7b48b456d70a924b4102c7b7f025 [file] [log] [blame]
#include <lib/sync/mutex.h>
#include <threads.h>
int cnd_init(cnd_t* c) {
*c = (cnd_t){};
*((sync_mutex_t*)(&c->_c_lock)) = SYNC_MUTEX_INIT;
return thrd_success;
}