Home | History | Annotate | Download | only in base

Lines Matching refs:affinity

95 // Set affinity (which cpu to run on), but respecting FLAG_affinity:
96 // -1 means no affinity - run on whatever cpu is available.
99 // so the range becomes affinity to affinity + N - 1
101 // the thread with affinity for a specified CPU more priority on that CPU.
102 bool SetThreadAffinity(BusyThread* t, int cpu, int affinity) {
104 if (affinity >= 0) {
106 1 << (cpu + affinity)) != FALSE;
124 int priority, double interval, int affinity) {
132 !SetThreadAffinity(threads[i], i, affinity)) {