2011-03-07 16:20:12 -05:00
|
|
|
#include "pthread_impl.h"
|
|
|
|
|
|
|
|
int pthread_condattr_setclock(pthread_condattr_t *a, clockid_t clk)
|
|
|
|
{
|
2011-03-08 02:32:42 -05:00
|
|
|
if (clk < 0 || clk-2U < 2) return EINVAL;
|
2011-03-07 16:20:12 -05:00
|
|
|
*a &= 0x80000000;
|
|
|
|
*a |= clk;
|
|
|
|
return 0;
|
|
|
|
}
|