<sched.h>: Add sched_getcpu() and cpu_set_t

This adds the cpu_set_t type definition and related functions
and macros used to handle CPU thread affinity.

  sched_getcpu()
  sched_setaffinity()
  sched_getaffinity()

Change-Id: If382ecafde8926341a88478062b275553645065b
This commit is contained in:
David 'Digit' Turner
2010-12-03 18:04:01 +01:00
parent 6481b91520
commit 72e6fd4242
22 changed files with 585 additions and 2 deletions

View File

@@ -11,6 +11,9 @@ Differences between current and Android 2.3:
- <time.h>: Add timegm(), timelocal(), time2posix() and posix2time()
- <sched.h>: Add sched_getcpu(), sched_getaffinity(), sched_setaffinity(),
cpu_set_t and related macros (e.g. CPU_SETSIZE, CPU_ZERO, CPU_SET, ...)
-------------------------------------------------------------------------------
Differences between Android 2.3 and Android 2.2: