diff options
author | 2023-02-24 12:24:04 -0800 | |
---|---|---|
committer | 2023-02-24 14:24:04 -0600 | |
commit | f0e5d5457922a2cbdff954b4dc01c879f8e39b3c (patch) | |
tree | 1f6e4a97308a160976f2e00a53ab98f4b903ed98 /src/bun.js/bindings/glibc-versions-hack.cpp | |
parent | 1c531472c93f9d3a7b491b100803b8c0ad42d0e7 (diff) | |
download | bun-f0e5d5457922a2cbdff954b4dc01c879f8e39b3c.tar.gz bun-f0e5d5457922a2cbdff954b4dc01c879f8e39b3c.tar.zst bun-f0e5d5457922a2cbdff954b4dc01c879f8e39b3c.zip |
Implement `os.cpus` for Darwin (OS X) (#2115)
* adding experimental Mac implementation os os.cpus
* Simplify cpus interfaces
* remove support for osx 10
* Refactor os.cpus implementation
This commit substantially refactors how the Linux and Darwin implementations of
`os.cpus`. The goal is to avoid unnecessary copying and allow broader latitude
in responding to errors per implementation.
* improved comments
* ensure no buffer overrun
* use PROCESSOR_CPU_LOAD_INFO_COUNT; not sure if this is correct
* oh teh noes
* use sliceTo instead of span
* cpu_ticks are uints
Diffstat (limited to 'src/bun.js/bindings/glibc-versions-hack.cpp')
0 files changed, 0 insertions, 0 deletions