Cygwin: Implement sched_[gs]etaffinity()
This patch set implements the Linux syscalls sched_getaffinity, sched_setaffinity, pthread_getaffinity_np, and pthread_setaffinity_np. Linux has a straightforward view of the cpu sets used in affinity masks. They are simply long (1024-bit) bit masks. This code emulates that view while internally dealing with Windows' distribution of available CPUs among processor groups.
This commit is contained in:
committed by
Corinna Vinschen
parent
d54edfdf81
commit
641ecb0753
@@ -5,6 +5,9 @@ What's new:
|
||||
1703 or later. Add fake 24 bit color support for legacy console,
|
||||
which uses the nearest color from 16 system colors.
|
||||
|
||||
- New APIs: sched_getaffinity, sched_setaffinity, pthread_getaffinity_np,
|
||||
pthread_setaffinity_np.
|
||||
|
||||
|
||||
What changed:
|
||||
-------------
|
||||
|
Reference in New Issue
Block a user