ndk: <sched.h>: Add cpu_set_t and related functions to API level 11
Add the following definitions related to cpu affinity to <sched.h>:
- cpu_set_t and associated macros: CPU_ZERO, CPU_SET, CPU_CLR, CPU_ISSET, CPU_EQUAL,
CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR.
- sched_getcpu(), sched_getaffinity() and sched_setaffinity()
- define macros for dynamically-sized cpu_set_t variables, i.e.:
CPU_ALLOC_SIZE, CPU_ALLOC, CPU_FREE, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S,
CPU_ISSET_S, CPU_EQUAL_S, CPU_COUNT_S
NOTE: You must define _GNU_SOURCE before including the header to get them.
Change-Id: I37338573c7af092118e7987420f6a930b6cc24b1
1 file changed