summaryrefslogtreecommitdiff
path: root/ot_mutex.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2007-11-20 02:55:13 +0000
committerDirk Engling <erdgeist@erdgeist.org>2007-11-20 02:55:13 +0000
commit2bdd11fc80414d9d3203228056c359ec16e2e977 (patch)
tree875b2b75fd6b25ecd91f58807c94d7091ff40221 /ot_mutex.c
parent191c88394b80f0896df54299f836b0457a21bbb5 (diff)
downloadopentracker-2bdd11fc80414d9d3203228056c359ec16e2e977.tar.gz
opentracker-2bdd11fc80414d9d3203228056c359ec16e2e977.zip
Tested for a too strict condition, we do need the correct tasktype AND an empty taskid, not the other way around
Diffstat (limited to 'ot_mutex.c')
-rw-r--r--ot_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_mutex.c b/ot_mutex.c
index b01bb4a..5624c03 100644
--- a/ot_mutex.c
+++ b/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