Created
September 20, 2018 13:42
-
-
Save AeroNotix/7179e3715320aafa6034164748e87fa5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar *cpus* | |
(max 1 | |
#-win32 (sb-alien:alien-funcall | |
(sb-alien:extern-alien "sysconf" | |
(function sb-alien:long sb-alien:int)) | |
sb-unix::sc-nprocessors-onln) | |
#+win32 (sb-alien:extern-alien "os_number_of_processors" sb-alien:int))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment