mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 08:53:35 +00:00
Formatting.
This commit is contained in:
parent
93310efdbe
commit
09cbaf4367
@ -129,11 +129,7 @@ impl Mutex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn kind() -> Kind {
|
fn kind() -> Kind {
|
||||||
if c::AcquireSRWLockExclusive::is_available() {
|
if c::AcquireSRWLockExclusive::is_available() { Kind::SRWLock } else { Kind::CriticalSection }
|
||||||
Kind::SRWLock
|
|
||||||
} else {
|
|
||||||
Kind::CriticalSection
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct ReentrantMutex {
|
pub struct ReentrantMutex {
|
||||||
|
Loading…
Reference in New Issue
Block a user