carstenbauer / ThreadPinning.jl

Readily pin Julia threads to CPU-threads
https://carstenbauer.github.io/ThreadPinning.jl/
MIT License
106 stars 7 forks source link

Use new internal functions for pinning #95

Closed carstenbauer closed 1 month ago

carstenbauer commented 2 months ago

Currently, we pin threads by using @tspawnat or @threads :static to run libuv functions on specific threads. In Julia 1.11, there will be two new functions, jl_getaffinity and jl_setaffinity, which we probably should use instead (because it's cleaner).

Also, this will allow us to pin GC threads easily (#73).