Lines Matching refs:affinity
112 // Set affinity (which cpu to run on), but respecting FLAG_affinity:
113 // -1 means no affinity - run on whatever cpu is available.
116 // so the range becomes affinity to affinity + N - 1
118 // the thread with affinity for a specified CPU more priority on that CPU.
119 bool SetThreadAffinity(BusyThread* t, int cpu, int affinity) {
121 if (affinity >= 0) {
123 1 << (cpu + affinity)) != FALSE;
141 int priority, double interval, int affinity) {
149 !SetThreadAffinity(threads[i], i, affinity)) {