madsim-rs/madsim

simulate `std::thread::available_parallelism`

wangrunji0408 opened this issue · 0 comments

We need to intercept sched_getaffinity on linux and sysconf(_SC_NPROCESSORS_ONLN) on macOS.