diff options
Diffstat (limited to 'src/solver_util.c')
-rw-r--r-- | src/solver_util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/solver_util.c b/src/solver_util.c index 5731c9a..ec18f3c 100644 --- a/src/solver_util.c +++ b/src/solver_util.c @@ -99,3 +99,15 @@ out_free_jid: return ret; } + +int solver_fcfs(struct job **job, struct job_clist *q, + __attribute__((unused)) int32_t resources) +{ + if (CIRCLEQ_EMPTY(q)) { + print_err("%s", "Trying to pop from empty queue"); + return -ESRCH; + } + + *job = CIRCLEQ_FIRST(q); + return 0; +} |