nix
nix copied to clipboard
Add a `sched_getcpu` wrapper
trafficstars
Thanks! Can you modify the existing test here to validate that setting the affinity actually has an effect by calling sched_getcpu?
Thanks for the review! I've addressed the comments.
@jonas-schievink can you squash the current changes into a single commit? Otherwise this looks great.
Okay, I've squashed the commits
Build succeeded:
- Android aarch64
- Android arm
- Android armv7
- Android i686
- Android x86_64
- DragonFly BSD x86_64
- FreeBSD 12 amd64 & i686
- FreeBSD 14 amd64 & i686
- Fuchsia x86_64
- Haiku x86_64
- Illumos
- iOS aarch64
- iOS x86_64
- Linux aarch64
- Linux arm gnueabi
- Linux arm-musleabi
- Linux armv7 gnueabihf
- Linux armv7 uclibceabihf
- Linux i686
- Linux i686 musl
- Linux MIPS
- Linux MIPS64
- Linux MIPS64 el
- Linux mipsel
- Linux powerpc
- Linux powerpc64
- Linux powerpc64le
- Linux s390x
- Linux x32
- Linux x86_64
- Linux x86_64 musl
- macOS aarch64
- macOS x86_64
- Minver
- NetBSD x86_64
- OpenBSD x86_64
- Redox x86_64
- Rust Formatter
- Rust Stable