diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-09-03 17:37:25 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-09-03 17:45:05 -0700 |
commit | eb13ccdbd81fc47ee79741ad9e536f9a7d2163c2 (patch) | |
tree | 0e884ec3ae0d583576cb1b83599149c1edd2a2fe /src/modules/julia | |
parent | 76c48cfffbac6cb40103c99eb76c0847b0d1a16a (diff) |
til_utils: switch til_get_ncpus() to sysconf
The ad-hoc sys-based probe of cpus works fine on Linux, but it's
not really preferable when Linux's sysconf supports
_SC_NPROCESSORS_ONLN, and there's a chance non-Linux's will
support it too.
Supposedly even Emscripten supports this, and will report the
number of available WebWorkers through this interface, even with
pthreads emulation. I'm curious if that actually works, getting
wasm builds of rototiller demos could be fun.
Diffstat (limited to 'src/modules/julia')
0 files changed, 0 insertions, 0 deletions