Browse Source

Tested for a too strict condition, we do need the correct tasktype AND an empty taskid, not the other way around

master
Dirk Engling 14 years ago
parent
commit
2bdd11fc80
  1. 2
      ot_mutex.c

2
ot_mutex.c

@ -194,7 +194,7 @@ ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ) {
while( !taskid ) {
/* Skip to the first unassigned task this worker wants to do */
task = tasklist;
while( task && ( ( TASK_MASK & task->tasktype ) != *tasktype ) && ( task->taskid ) )
while( task && ( ( ( TASK_MASK & task->tasktype ) != *tasktype ) || task->taskid ) )
task = task->next;
/* If we found an outstanding task, assign a taskid to it

Loading…
Cancel
Save