Skip to content

Commit 3128731

Browse files
authored
Merge pull request #3 from mwkroening/mutex-deadlock
MutexGuard::drop: Signal event instead of wait for event
2 parents be6a5b8 + 7a0ef59 commit 3128731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)