wake up procs in wait channel during Mutex_Unlock
This commit is contained in:
parent
e991129de9
commit
1c88ad598c
@ -95,6 +95,7 @@ Mutex_Unlock(Mutex *mtx)
|
|||||||
|
|
||||||
mtx->status = MTX_STATUS_UNLOCKED;
|
mtx->status = MTX_STATUS_UNLOCKED;
|
||||||
mtx->owner = NULL;
|
mtx->owner = NULL;
|
||||||
|
WaitChannel_Wake(&mtx->chan);
|
||||||
Spinlock_Unlock(&mtx->lock);
|
Spinlock_Unlock(&mtx->lock);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user