fix sched_setaffinity parameter : sizeof(cpu_set_t)
This commit is contained in:
parent
f97cfa2203
commit
d7276fa0cd
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue