@ -5,7 +5,7 @@
"data-layout": "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128",
"target-endian": "little",
"target-pointer-width": "32",
"target-c-int-width": "32",
"target-c-int-width": 32,
"executables": true,
"linker-flavor": "ld.lld",
"linker": "rust-lld",
@ -13,7 +13,7 @@ impl<T> Spinlock<T> {
}
pub fn lock(&self) -> SpinlockGuard<T> {
pub fn lock(&self) -> SpinlockGuard<'_, T> {
// If we observe `locked` was `false`, then:
// - Use acquire ordering, so nothing inside the critical section gets reordered before we
// observed the `false` value.