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:58 +0000 (11:48 -0400)
commit13d2c5baf1565ba1daa2b96f5e4a297571c505b4
tree27c7c40e4a1abf05e3946dc7cdab48ceed36b332
parent74e08bd8df980e899eeff67a2a23ce36ec7a1da4
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.031198 seconds and 4 git commands to generate.