Rename internal variable: doom-num-cpus -> doom--num-cpus

This commit is contained in:
Henrik Lissner 2020-11-29 14:50:32 -05:00
parent b91a1b3e7b
commit c0e905c044
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -41,13 +41,13 @@ Warning: freezes indefinitely on any stdin prompt."
(process-exit-status process))
(string-trim (buffer-string)))))
(defvar doom-num-cpus nil)
(defvar doom--num-cpus nil)
;;;###autoload
(defun doom-num-cpus ()
"Return the max number of processing units on this system.
Tries to be portable. Returns 1 if cannot be determined."
(or doom-num-cpus
(setq doom-num-cpus
(or doom--num-cpus
(setq doom--num-cpus
(max
1 (cond ((eq 'windows-nt system-type)
(or (ignore-errors