fix sched_setaffinity parameter : sizeof(cpu_set_t)

This commit is contained in:
Kiyoaki Matsugae 2014-03-12 12:05:18 +09:00
parent f97cfa2203
commit d7276fa0cd

View file

@ -62,7 +62,7 @@ static inline void affine_to_cpu(int id, int cpu)
CPU_ZERO(&set);
CPU_SET(cpu, &set);
sched_setaffinity(0, sizeof(&set), &set);
sched_setaffinity(0, sizeof(set), &set);
}
#elif defined(__FreeBSD__) /* FreeBSD specific policy and affinity management */
#include <sys/cpuset.h>