diff options
author | erdgeist <> | 2007-11-20 02:55:13 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-20 02:55:13 +0000 |
commit | e9d49af9fada3ca2b427cdb70cbd0a957798c406 (patch) | |
tree | 875b2b75fd6b25ecd91f58807c94d7091ff40221 | |
parent | 74a5afbe8241edef40bef1f684ea02df7fda3b10 (diff) |
Tested for a too strict condition, we do need the correct tasktype AND an empty taskid, not the other way around
-rw-r--r-- | ot_mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -194,7 +194,7 @@ ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ) { | |||
194 | while( !taskid ) { | 194 | while( !taskid ) { |
195 | /* Skip to the first unassigned task this worker wants to do */ | 195 | /* Skip to the first unassigned task this worker wants to do */ |
196 | task = tasklist; | 196 | task = tasklist; |
197 | while( task && ( ( TASK_MASK & task->tasktype ) != *tasktype ) && ( task->taskid ) ) | 197 | while( task && ( ( ( TASK_MASK & task->tasktype ) != *tasktype ) || task->taskid ) ) |
198 | task = task->next; | 198 | task = task->next; |
199 | 199 | ||
200 | /* If we found an outstanding task, assign a taskid to it | 200 | /* If we found an outstanding task, assign a taskid to it |