Closed th4s closed 2 weeks ago
In order to prevent deadlocks it is important that the number of parallel rayon threads is synchronized with the MT executor's number of threads.
One approach to do this would be to use local ThreadPools which are owned by MTContext. It is important that there is a way to inject different types of threadpools to support browser environments.
ThreadPools
MTContext
https://github.com/RReverser/wasm-bindgen-rayon/issues/18
Closing, instead we've moved away from putting logical threads on the global rayon pool. Each logical thread has it's own system thread. See #187
In order to prevent deadlocks it is important that the number of parallel rayon threads is synchronized with the MT executor's number of threads.
One approach to do this would be to use local
ThreadPools
which are owned byMTContext
. It is important that there is a way to inject different types of threadpools to support browser environments.