Skip to content

Commit 7a0ef59

Browse files
committedApr 7, 2020
MutexGuard::drop: Signal event instead of wait for event
1 parent 341fa1c commit 7a0ef59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎async-cortex-m/src/unsync/mutex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl<T> Drop for MutexGuard<'_, T> {
9494
fn drop(&mut self) {
9595
self.0.locked.set(false);
9696
self.0.wakers.notify_any();
97-
asm::wfe();
97+
asm::sev();
9898
}
9999
}
100100

0 commit comments

Comments
 (0)
Failed to load comments.