rust/library/std/src/sync
Matthias Krüger 605a4fc7ab
Rollup merge of #109142 - the8472:mutex-block-docs, r=cuviper
Add block-based mutex unlocking example

This modifies the existing example in the Mutex docs to show both `drop()` and block based early unlocking.

Alternative to #81872, which is getting closed.
2023-03-24 01:22:05 +01:00
..
barrier std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
condvar Remove condvar::two_mutexes test. 2022-05-05 21:47:13 +02:00
lazy_lock More inference-friendly API for lazy 2022-10-29 09:56:20 +01:00
mpmc std: leak remaining messages in bounded channel if message destructor panics 2023-03-14 16:42:34 +01:00
mpsc std: add regression test for #107466 2023-02-17 15:58:15 +01:00
mutex std test: better type name, clarifying comment 2023-01-09 16:08:26 +01:00
once Stabilize poison API of Once, rename poisoned() 2021-02-04 15:20:14 +01:00
once_lock Move/rename lazy::Sync{OnceCell,Lazy} to sync::{Once,Lazy}Lock 2022-06-16 19:54:42 +04:00
remutex std: move ReentrantMutex to sync 2022-11-14 14:25:44 +01:00
rwlock Update rand in the stdlib tests, and remove the getrandom feature from it 2023-01-04 14:52:41 -08:00
barrier.rs Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc 2021-10-21 14:11:02 +09:00
condvar.rs std: remove lock wrappers in sys_common 2022-11-06 15:32:59 +01:00
lazy_lock.rs std: add safety comment in LazyLock::get 2023-01-27 10:11:42 +01:00
mod.rs std: optimize LazyLock size 2023-01-26 16:16:03 +01:00
mutex.rs Apply suggestions from code review 2023-03-20 12:15:17 +01:00
once.rs std: optimize LazyLock size 2023-01-26 16:16:03 +01:00
once_lock.rs Add #[inline] marker to OnceCell/LazyCell/OnceLock/LazyLock 2022-12-13 02:18:15 -05:00
poison.rs Auto merge of #97791 - m-ou-se:const-locks, r=m-ou-se 2022-06-19 08:20:36 +00:00
remutex.rs unequal → not equal 2023-03-15 23:55:48 +05:30
rwlock.rs std: remove lock wrappers in sys_common 2022-11-06 15:32:59 +01:00