Files
Mark 3542b73f1a SMP kinda works, fixed malloc race condition
Damn, I totally need to review SMP safety
2020-02-04 14:16:16 +02:00

20 lines
386 B
C

#pragma once
enum thread_state;
struct thread;
extern int sched_ncpus;
extern int sched_ready;
void sched_queue(struct thread *thr);
void sched_unqueue(struct thread *thr, enum thread_state new_state);
void sched_set_ncpus(int ncpus);
void sched_debug_cycle(uint64_t delta_ms);
void sched_reboot(unsigned int cmd);
void yield(void);
void sched_init(void);
void sched_enter(void);