You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An RwLock fallback implementatoin cannot be done with a mutex, as it prevents multiple read locks e.g. from the same thread to happen, or prevents co-dependent threads that all should have read locks from progressing together. In fact, even the simple example in the Rust std docs for RwLock will panic immediately.
Newer Rust versions have their own SRWLOCK-like implementation that doesn't rely on OS primitives beyond a thread parker implementation. We can bring back the old generic thread parker implementation (as already done in the 1.76 rust9x version) and enable a proper RwLock impl that way 🚀
An RwLock fallback implementatoin cannot be done with a mutex, as it prevents multiple read locks e.g. from the same thread to happen, or prevents co-dependent threads that all should have read locks from progressing together. In fact, even the simple example in the Rust std docs for RwLock will panic immediately.
Split off from #32 (comment)
Interesting links:
The text was updated successfully, but these errors were encountered: