Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Commit

Permalink
Fix false affinity error on FreeBSD
Browse files Browse the repository at this point in the history
It was succeeding but we were claiming failure

Reported in #48
  • Loading branch information
wez committed Dec 23, 2013
1 parent 77d29f2 commit 48bd43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corelib/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static bool apply_affinity(ph_cpu_set_t *set, ph_thread_t *me) {
# ifdef HAVE_CPUSET_SETAFFINITY
ph_unused_parameter(me);
return cpuset_setaffinity(CPU_LEVEL_WHICH,
CPU_WHICH_TID, -1, sizeof(*set), set);
CPU_WHICH_TID, -1, sizeof(*set), set) == 0;
# else
return pthread_setaffinity_np(me->thr, sizeof(*set), set) == 0;
#endif
Expand Down

0 comments on commit 48bd43d

Please sign in to comment.