Sign in
fuchsia
/
fuchsia
/
83854f31e881f0f9aa2bd848a84a94e01fb09dd9
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
thread
/
cnd_init.c
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
;
}