MOS Source Code
|
#include "mos/lib/structures/list.h"
#include "mos/mm/slab_autoinit.h"
#include "mos/platform/platform.h"
#include "mos/tasks/scheduler.h"
#include "mos/tasks/task_types.h"
#include <mos_stdlib.h>
Go to the source code of this file.
Classes | |
struct | naive_sched_t |
struct | naive_sched_node_t |
Functions | |
SLAB_AUTOINIT ("naivesched_node", naivesched_node_slab, naive_sched_node_t) | |
static void | naive_sched_init (scheduler_t *instance) |
static thread_t * | naive_sched_select_next (scheduler_t *instance) |
static void | naive_sched_add_thread (scheduler_t *instance, thread_t *thread) |
static void | naive_sched_remove_thread (scheduler_t *instance, thread_t *thread) |
MOS_PUT_IN_SECTION (".mos.schedulers", scheduler_info_t, MOS_CONCAT(naive, __COUNTER__), { .name="naive",.scheduler=&naive_sched.base }) | |
Variables | |
static slab_t * | naivesched_node_slab = NULL |
static const scheduler_ops_t | naive_sched_ops |
static naive_sched_t | naive_sched |
SLAB_AUTOINIT | ( | "naivesched_node" | , |
naivesched_node_slab | , | ||
naive_sched_node_t | ) |
|
static |
|
static |
|
static |
|
static |
MOS_PUT_IN_SECTION | ( | ".mos.schedulers" | , |
scheduler_info_t | , | ||
MOS_CONCAT(naive, __COUNTER__) | , | ||
{ .name="naive",.scheduler=&naive_sched.base } | ) |
Definition at line 24 of file naive.c.
Referenced by naive_sched_add_thread().
|
static |
|
static |
Definition at line 101 of file naive.c.
Referenced by naive_sched_add_thread(), naive_sched_init(), naive_sched_remove_thread(), and naive_sched_select_next().