diff options
| author | Tyge Løvset <[email protected]> | 2023-05-29 20:42:43 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-29 20:42:43 +0200 |
| commit | 80df921622c97634aeea31821a61f46885324d9c (patch) | |
| tree | d755e6e3b1294f80ff068695a7b8c5096b3b8359 /misc/examples/scheduler.c | |
| parent | 8497b5497ecba2c2f1d368c9161ec52d4f03ae30 (diff) | |
| download | STC-modified-80df921622c97634aeea31821a61f46885324d9c.tar.gz STC-modified-80df921622c97634aeea31821a61f46885324d9c.zip | |
Update extern benchmark maps.
Removed i_expandby in cmap. Always expand by 2 i.e 2^n buckets..
Diffstat (limited to 'misc/examples/scheduler.c')
| -rw-r--r-- | misc/examples/scheduler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/scheduler.c b/misc/examples/scheduler.c index ea1414c7..aecb1a26 100644 --- a/misc/examples/scheduler.c +++ b/misc/examples/scheduler.c @@ -12,12 +12,12 @@ struct Task { #define i_type Scheduler #define i_val struct Task #define i_no_cmp -#include <stc/clist.h> +#include <stc/cqueue.h> static bool schedule(Scheduler* sched) { struct Task task = *Scheduler_front(sched); - Scheduler_pop_front(sched); + Scheduler_pop(sched); if (!cco_done(&task)) task.resume(&task); @@ -27,7 +27,7 @@ static bool schedule(Scheduler* sched) static bool push_task(const struct Task* task) { - Scheduler_push_back(task->sched, *task); + Scheduler_push(task->sched, *task); return false; } |
