mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 23:21:56 +00:00
implement pthread_condattr_* interfaces
note that, while the attributes are stored, they are not used in pthread_cond_init yet.
This commit is contained in:
9
src/thread/pthread_condattr_setclock.c
Normal file
9
src/thread/pthread_condattr_setclock.c
Normal file
@ -0,0 +1,9 @@
|
||||
#include "pthread_impl.h"
|
||||
|
||||
int pthread_condattr_setclock(pthread_condattr_t *a, clockid_t clk)
|
||||
{
|
||||
if (clk < 0) return EINVAL;
|
||||
*a &= 0x80000000;
|
||||
*a |= clk;
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user