mirror of
https://github.com/drasko/codezero.git
synced 2026-02-27 17:23:13 +01:00
Cleaned up code for userspace mutexes.
- Issues: wait_on_prepare and wait_on_prepared_wait use cases are erroneous because they may sleep with mutex_control_lock taken if preemption occurs.
This commit is contained in:
@@ -41,7 +41,7 @@ void task_unset_wqh(struct ktcb *task)
|
||||
*/
|
||||
int wait_on_prepared_wait(void)
|
||||
{
|
||||
/* Simply scheduling should initate wait */
|
||||
/* Simply scheduling should initiate wait */
|
||||
schedule();
|
||||
|
||||
/* Did we wake up normally or get interrupted */
|
||||
|
||||
Reference in New Issue
Block a user