Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
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
;
}