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

don't block on any queue.

Former-commit-id: b6407924f23814108df8f544a646af8665a2b009
parent 613867a2
No related branches found
No related tags found
No related merge requests found
......@@ -850,7 +850,7 @@ struct task *scheduler_gettask ( struct scheduler *s , int qid , struct cell *su
for ( int tries = 0 ; res == NULL && s->waiting && tries < scheduler_maxtries ; tries++ ) {
/* Try to get a task from the suggested queue. */
if ( s->queues[qid].count > 0 && ( res = queue_gettask( &s->queues[qid] , super , 1 ) ) != NULL )
if ( s->queues[qid].count > 0 && ( res = queue_gettask( &s->queues[qid] , super , 0 ) ) != NULL )
break;
/* If unsucessful, try stealing from the other queues. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment