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:47:30 +0000 (11:47 -0400)
commit5de7c318804a7b1edce8562d4891b4c74aac0677
tree73f77ce9bd97b582bf63d511e2477c1feb699907
parent6e9ac4ae894690c95df4566289422c4c05ab472a
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.02538 seconds and 4 git commands to generate.