We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d131919 commit 4cc1efaCopy full SHA for 4cc1efa
src/common/pico_sync/mutex.c
@@ -72,7 +72,7 @@ bool __time_critical_func(mutex_enter_block_until)(mutex_t *mtx, absolute_time_t
72
73
void __time_critical_func(mutex_exit)(mutex_t *mtx) {
74
uint32_t save = spin_lock_blocking(mtx->core.spin_lock);
75
- assert(mtx->owned);
+ assert(mtx->owner >= 0);
76
mtx->owner = -1;
77
__sev();
78
spin_unlock(mtx->core.spin_lock, save);
0 commit comments