compat: work around broken _SC_NPROCESSORS_CONF on MUSL libc
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 20 Mar 2019 15:07:35 +0000 (11:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 20 Mar 2019 15:48:55 +0000 (11:48 -0400)
commit4dfde2bfb1a55a37d0c8a73fbc443f9a483ec605
tree0d866370eb2edc0c98cbcf0caa6bf640ffb08cc0
parenta7fdc0c19ae60515cd1d8417d07bf6e1a5cbc781
compat: work around broken _SC_NPROCESSORS_CONF on MUSL libc

On MUSL libc the _SC_NPROCESSORS_CONF sysconf will report the number of
CPUs allocated to the task based on the affinity mask instead of the
total number of CPUs configured on the system.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/smp.c
This page took 0.025 seconds and 4 git commands to generate.