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

formatting.

parent 7339bbe7
No related branches found
No related tags found
2 merge requests!136Master,!122Rewait fixes
...@@ -1134,7 +1134,7 @@ void scheduler_enqueue(struct scheduler *s, struct task *t) { ...@@ -1134,7 +1134,7 @@ void scheduler_enqueue(struct scheduler *s, struct task *t) {
/* If no previous owner, pick a random queue. */ /* If no previous owner, pick a random queue. */
if (qid < 0) qid = rand() % s->nr_queues; if (qid < 0) qid = rand() % s->nr_queues;
/* Increase the waiting counter. */ /* Increase the waiting counter. */
atomic_inc(&s->waiting); atomic_inc(&s->waiting);
...@@ -1278,7 +1278,7 @@ struct task *scheduler_gettask(struct scheduler *s, int qid, ...@@ -1278,7 +1278,7 @@ struct task *scheduler_gettask(struct scheduler *s, int qid,
if (res != NULL) break; if (res != NULL) break;
} }
} }
/* If we failed, take a short nap. */ /* If we failed, take a short nap. */
#ifdef WITH_MPI #ifdef WITH_MPI
if (res == NULL && qid > 1) { if (res == NULL && qid > 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment