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:49:01 +0000 (11:49 -0400)
commite1e13e8cc548aec75adecc78fd2522b0f01a0812
treea6927832c80b66a3689bc2d20484bb2f289ba80d
parent3f2567c5b0ed27a2e7d1623326a2fbf2a26295b4
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.025032 seconds and 4 git commands to generate.