about summary refs log tree commit diff
path: root/library/std/src/sync/mutex.rs
AgeCommit message (Expand)AuthorLines
2025-01-02Move some things to `std::sync::poison` and reexport them in `std::sync`Pavel Grigorenko-849/+0
2024-11-30Add value accessor methods to `Mutex` and `RwLock`EFanZh-6/+104
2024-09-29Fix std tests for wasm32-wasip2 targetNicola Krumschmidt-1/+1
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-03-22docs(sync): normalize dot in fn summariesMultisampledNight-1/+1
2024-03-12std: move `Once` implementations to `sys`joboet-1/+1
2024-02-28remove Mutex::unlockHTGAzureX1212.-20/+0
2024-02-25Auto merge of #117107 - zachs18:mapped-mutex-guard, r=Amanieubors-0/+219
2024-02-23Apply suggestions from code reviewzachs18-3/+3
2024-02-08Bump version placeholdersMark Rousskov-1/+1
2024-01-10Stabilize mutex_unpoison featureThayne McCombs-3/+1
2023-12-10Fix typo in `std::sync::Mutex` examplenaglis-1/+1
2023-12-05Specify behavior if the closure passed to *Guard::*map panics.Zachary S-28/+50
2023-12-05fix MappedMutexGuard::(try_)map doc typo.Zachary S-2/+2
2023-12-05Fix Condvar typo, add public re-exports of Mapped*Guard.Zachary S-2/+2
2023-12-05Add comment about `Mapped(Mutex|RwLockWrite)Guard` variance.Zachary S-12/+16
2023-12-05Implement `MappedMutexGuard`.Zachary S-0/+193
2023-04-19std: make `Debug` representations of `[Lazy, Once]*[Cell, Lock]` consistent w...joboet-7/+1
2023-03-20Apply suggestions from code reviewthe8472-3/+3
2023-03-20Add block-based mutex unlocking exampleThe 8472-7/+17
2022-11-06std: remove lock wrappers in `sys_common`joboet-10/+6
2022-09-02Rollup merge of #97739 - a2aaron:let_underscore, r=estebankGuillaume Gomez-0/+1
2022-06-19Auto merge of #97791 - m-ou-se:const-locks, r=m-ou-sebors-1/+3
2022-06-09Avoid `thread::panicking()` in non-poisoning methods of `Mutex` and `RwLock`Josh Stone-3/+3
2022-06-07Update library/std/src/sync/mutex.rsDylan DPC-1/+1
2022-06-07Remove confusing sentence from `Mutex` docsNilstrieb-5/+4
2022-06-06Make {Mutex, Condvar, RwLock}::new() const.Mara Bos-0/+1
2022-06-06Make all {Mutex, Condvar, RwLock}::new #[inline].Mara Bos-1/+2
2022-06-05Add diagnostic items to MutexGuard and RwLock GuardsAaron Kofsky-0/+1
2022-05-20Auto merge of #96422 - tmccombs:mutex-unpoison, r=m-ou-sebors-0/+39
2022-05-20Remove references to guards in documentation for clear_poisonThayne McCombs-5/+5
2022-05-19Change clear_poison to take the lock instead of a guardThayne McCombs-4/+9
2022-05-06Mark locks in std lib with clippy::has_significant_dropPreston From-0/+1
2022-04-27Add tracking issue number for mutex_unpoisonThayne McCombs-1/+1
2022-04-26Add functions to un-poison Mutex and RwLockThayne McCombs-0/+34
2022-01-28update cfg(bootstrap)sPietro Albini-5/+2
2021-10-03Practice diagnostic message conventionHirochika Matsumoto-1/+1
2021-10-02Make diangostic item names consistentCameron Steffen-1/+1
2021-09-28ref/refmutGus Wynn-1/+1
2021-09-27lock typesGus Wynn-0/+6
2021-07-01Move Mutex::unlock to T: ?SizedMark Mansi-20/+20
2021-05-24minor rewording after reviewTaylor Yu-2/+2
2021-05-20doc: clarify Mutex::try_lock, etc. errorsTaylor Yu-2/+8
2021-04-28Simplify `Mutex::into_inner`BenoƮt du Garreau-19/+2
2021-04-22Move `sys_common::poison` to `sync::poison`Christiaan Dirkx-1/+1
2021-03-27Improve Debug implementations of Mutex and RwLock.Mara Bos-4/+8
2021-02-18add Mutex::unlockmark-0/+20
2020-10-07(docs): make mutex error comment consistent with codebaseSteve Manuel-1/+1
2020-09-27Split sys_common::Mutex in StaticMutex and MovableMutex.Mara Bos-26/+4
2020-09-20Replace unneeded `unsafe` calls to `.get()` with calls to `.get_mut()`Daniel Henry-Mantilla-3/+1