From 7a0ef590003d2ad1673e0aa9a143e80c525c6a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Tue, 7 Apr 2020 14:22:54 +0200 Subject: [PATCH] MutexGuard::drop: Signal event instead of wait for event --- async-cortex-m/src/unsync/mutex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async-cortex-m/src/unsync/mutex.rs b/async-cortex-m/src/unsync/mutex.rs index fcbc758..8224070 100644 --- a/async-cortex-m/src/unsync/mutex.rs +++ b/async-cortex-m/src/unsync/mutex.rs @@ -94,7 +94,7 @@ impl Drop for MutexGuard<'_, T> { fn drop(&mut self) { self.0.locked.set(false); self.0.wakers.notify_any(); - asm::wfe(); + asm::sev(); } }