diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-09-12 20:50:17 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-09-12 20:50:17 +0200 |
| commit | 1016deb592cec6d02e963bb3ffbfbb2c4f9309b8 (patch) | |
| tree | 45038fd9e8eb9cd3353bce32fc83d490e54877df /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 2d6cbd21b2c5819c7fa42eb5a3713667b67e4f03 (diff) | |
| download | rust-1016deb592cec6d02e963bb3ffbfbb2c4f9309b8.tar.gz rust-1016deb592cec6d02e963bb3ffbfbb2c4f9309b8.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
