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

forgot to set 'res'.

parent 4d345471
No related branches found
No related tags found
2 merge requests!136Master,!75Overlapping tasks
......@@ -212,6 +212,9 @@ struct task *queue_gettask(struct queue *q, const struct task *prev, int blockin
/* Another one bites the dust. */
const int qcount = q->count -= 1;
/* Get a pointer on the task that we want to return. */
res = &qtasks[tid];
/* Swap this task with the last task and re-heap. */
int k = ind;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment