Skip to content
Snippets Groups Projects
Commit 7172a8a8 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

fix bug in parallel scheduler.

Former-commit-id: 6e8a16da490dcb52be8cb7adcf392430ae9f1fca
parent 06efb8a9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment