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:
Bahadir Balban
2009-06-10 14:37:23 +03:00
parent 056fcab125
commit 6b3ddadcf5
3 changed files with 51 additions and 34 deletions

View File

@@ -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 */