MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / pthread_getaffinity_np

Function pthread_getaffinity_np

src/plugin/pid/sched_wrappers.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36#ifdef USE_VIRTUAL_TID_LIBC_STRUCT_PTHREAD
37
38extern "C" int
39pthread_getaffinity_np (pthread_t th, size_t cpusetsize, cpu_set_t *cpuset)
40{
41 return sched_getaffinity(dmtcp_pthread_get_tid(th), cpusetsize, cpuset);
42}
43
44extern "C" int
45pthread_setaffinity_np(pthread_t th, size_t cpusetsize, const cpu_set_t *cpuset)

Callers 2

pthread_getattr_npFunction · 0.85

Calls 2

sched_getaffinityFunction · 0.85
dmtcp_pthread_get_tidFunction · 0.85

Tested by

no test coverage detected