mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Rename internal variable: doom-num-cpus -> doom--num-cpus
This commit is contained in:
@ -41,13 +41,13 @@ Warning: freezes indefinitely on any stdin prompt."
|
|||||||
(process-exit-status process))
|
(process-exit-status process))
|
||||||
(string-trim (buffer-string)))))
|
(string-trim (buffer-string)))))
|
||||||
|
|
||||||
(defvar doom-num-cpus nil)
|
(defvar doom--num-cpus nil)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom-num-cpus ()
|
(defun doom-num-cpus ()
|
||||||
"Return the max number of processing units on this system.
|
"Return the max number of processing units on this system.
|
||||||
Tries to be portable. Returns 1 if cannot be determined."
|
Tries to be portable. Returns 1 if cannot be determined."
|
||||||
(or doom-num-cpus
|
(or doom--num-cpus
|
||||||
(setq doom-num-cpus
|
(setq doom--num-cpus
|
||||||
(max
|
(max
|
||||||
1 (cond ((eq 'windows-nt system-type)
|
1 (cond ((eq 'windows-nt system-type)
|
||||||
(or (ignore-errors
|
(or (ignore-errors
|
||||||
|
Reference in New Issue
Block a user