Concurrency primitives, safe memory reclamation mechanisms and non-blocking (including lock-free) data structures designed to aid in the research, design and implementation of high performance concurrent systems developed in C99+.
The thread_policy_set call in aff_iterate fails with
KERN_NOT_SUPPORTED on M1 macbooks. The reported error from the
regression tests is "Success" because thread_policy_set doesn't set
errno.
This patch converts KERN_NOT_SUPPORTED into a successful return and
sets errno to EINVAL on other errors. This is ok in the regression
tests as there affinity binding is only advisory.
The
thread_policy_set
call inaff_iterate
fails withKERN_NOT_SUPPORTED
on M1 macbooks. The reported error from the regression tests is "Success" becausethread_policy_set
doesn't set errno.This patch converts
KERN_NOT_SUPPORTED
into a successful return and sets errno toEINVAL
on other errors. This is ok in the regression tests as there affinity binding is only advisory.Fixes #186