Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
src
/
thread
/
pthread_condattr_setclock.c
blob: 71125941341d1392661eccdf6367793d270b0c2a [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_condattr_setclock
(
pthread_condattr_t
*
a
,
clockid_t
clk
)
{
if
(
clk
<
0
||
clk
-
2U
<
2
)
return
EINVAL
;
a
->
__attr
&=
0x80000000
;
a
->
__attr
|=
clk
;
return
0
;
}