Update advantages over types in std
Mutex, RwLock and CondVar are const-constructible in std since Rust 1.63. In most platforms pthread locks have been replaced with ones that do not allocate.
Maybe it should be noted that points 1-5 are implemented in std for most platforms?
Yea, 1-5 can be simplified/updated to the following:
- All types require only 1 word of storage (unlike stdlib which stores more state for poison detection).
- Static initializers for all types (stdlib doesn't yet have this for Barrier).
- Inline uncontested paths and micro-contention handled with bounded, adaptive spinning.
Yea, 1-5 can be simplified/updated to the following
Done.
Sorry it's been a while.
6) looks like a duplicate of 5). Could it be removed?
- looks like a duplicate of 5). Could it be removed?
Merged them. Not sure why 5 was about Mutex and RwLock and 6 was about Mutex<()> and RwLock<()>, since the docs for them don't mention that raw locking only works on ().