]> git.eshelyaron.com Git - emacs.git/commit
Use MS-Windows system APIs to get number of processors
authorEli Zaretskii <eliz@gnu.org>
Sun, 7 Mar 2021 13:32:55 +0000 (15:32 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 7 Mar 2021 13:32:55 +0000 (15:32 +0200)
commit619f66f423c76d94b2bca728f9c22b536e909108
treeecdea436c993f75d73b325c7552937a223365d80
parent99638d128ee07fa35525ac47217f68dd518e9175
Use MS-Windows system APIs to get number of processors

* lisp/emacs-lisp/comp.el: Use 'w32-get-nproc' instead of the
environment variable NUMBER_OF_PROCESSORS.

* src/w32proc.c (Fw32_get_nproc): New primitive.
* src/w32.c (w32_get_nproc): New function.
(sample_system_load): Call w32_get_nproc to initialize the number
of processors on this system.
* src/w32.h (w32_get_nproc): Add prototype.
lisp/emacs-lisp/comp.el
src/w32.c
src/w32.h
src/w32proc.c