Skip to content

Conversation

@moshegottlieb
Copy link

@moshegottlieb moshegottlieb commented Jan 8, 2017

Added #if defined(__APPLE__) wrapper for count_processors, using sysconf (in libc, include unistd.h which is already indirectly included).
sysconf(_SC_NPROCESSORS_ONLN) returns the number of processors currently online or -1 if there was an error, this function uses -1 to denote an error so this works fine.

Added #if defined(__APPLE__) wrapper for count_processors, using sysconf (libc, include unistd.h which is already indirectly included).
sysconf(_SC_NPROCESSORS_ONLN) returns the number of processors currently online or -1 if there was an error, this function uses -1 to denote an error so this works fine.
@kenorb
Copy link

kenorb commented Apr 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants