Skip to content
Snippets Groups Projects
Commit 69caa396 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

dthreads: fix NetBSD pointer argument in cpuset_set

parent 64ca05c5
No related branches found
No related tags found
No related merge requests found
......@@ -679,7 +679,7 @@ int dt_setaffinity(dthread_t *thread, unsigned* cpu_id, size_t cpu_count)
}
cpuset_zero(set);
for (unsigned i = 0; i < cpu_count; ++i) {
cpuset_set(cpu_id[i], &set);
cpuset_set(cpu_id[i], set);
}
ret = pthread_setaffinity_np(thread->_thr, cpuset_size(set), set);
cpuset_destroy(set);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment