blob: 62355f43ef47d8baa406ccfa77aaf6dbec1479ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "pthread_impl.h"
int pthread_getcpuclockid(pthread_t t, clockid_t *clockid)
{
#ifdef __EMSCRIPTEN__ // XXX Emscipten per-thread CPU time clocks are not supported
// pthread API recommends returning this error when "Per-thread CPU time clocks are not supported by the system."
return ENOENT;
#else
*clockid = (-t->tid-1)*8U + 6;
return 0;
#endif
}
|