about summary refs log tree commit diff
path: root/compiler/rustc_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-17 19:23:58 +0000
committerbors <bors@rust-lang.org>2020-09-17 19:23:58 +0000
commitf3c923a13a458c35ee26b3513533fce8a15c9c05 (patch)
tree14fcec7aff0a007300065d99482ce964e887bb03 /compiler/rustc_llvm/src
parent7bdb5dee7bac15458b10b148e9e24968e633053e (diff)
parent0bb96e7490299977abf2d3af16dd752d67ca43a9 (diff)
downloadrust-f3c923a13a458c35ee26b3513533fce8a15c9c05.tar.gz
rust-f3c923a13a458c35ee26b3513533fce8a15c9c05.zip
Auto merge of #76645 - fusion-engineering-forks:windows-lock, r=kennytm
 Small cleanups in Windows Mutex.

 - Move `held` into the boxed part, since the SRW lock implementation does not use this. This makes the Mutex 50% smaller.
 - Use `Cell` instead of `UnsafeCell` for `held`, such that `.replace()` can be used.
 - Add some comments.
 - Avoid creating multiple `&mut`s to the critical section object in `ReentrantMutex`.
Diffstat (limited to 'compiler/rustc_llvm/src')
0 files changed, 0 insertions, 0 deletions