summaryrefslogtreecommitdiff
path: root/src/thread/pthread_condattr_setclock.c
blob: 71125941341d1392661eccdf6367793d270b0c2a (plain) (blame)
1
2
3
4
5
6
7
8
9
#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;
}