Commit 7172a8a8 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

fix bug in parallel scheduler.


Former-commit-id: 6e8a16da490dcb52be8cb7adcf392430ae9f1fca
parent 06efb8a9
......@@ -238,8 +238,10 @@ struct task *queue_gettask ( struct queue *q , int qid , int blocking ) {
break;
}
}
}
else
res = NULL;
/* Release the task lock. */
if ( lock_unlock( qlock ) != 0 )
......@@ -251,7 +253,7 @@ struct task *queue_gettask ( struct queue *q , int qid , int blocking ) {
} /* while there are tasks. */
/* No beef. */
/* Take the money and run. */
TIMER_TOC(queue_timer_gettask);
return res;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment