Sign in
cobalt
/
cobalt
/
97b64f26fb12c9eab352139c26f0b01d1cb6d0b9
/
.
/
third_party
/
musl
/
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
;
}