Merge pull request #68 from kiyominer/master

fix sched_setaffinity parameter : sizeof(cpu_set_t)
This commit is contained in:
pooler 2014-03-12 08:39:55 +01:00
commit cdf82b4090

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>