BEEP-8 SDK 1.0.0
Loading...
Searching...
No Matches
sched.h
Go to the documentation of this file.
1
22#pragma once
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28// POSIX scheduling policies
29#undef SCHED_FIFO
30#define SCHED_FIFO 1 // FIFO priority scheduling policy
31
32#undef SCHED_RR
33#define SCHED_RR 2 // Round robin scheduling policy
34
35#undef SCHED_SPORADIC
36#define SCHED_SPORADIC 3 // Sporadic scheduling policy
37
38#undef SCHED_IRQ
39#define SCHED_IRQ 4 // Irq handler scheduling policy
40
41#undef SCHED_OTHER
42#define SCHED_OTHER 5 // Not supported
43
44#undef sched_param
45#define sched_param b8_sched_param
47 int sched_priority; // Base thread priority
48};
49
50extern int sched_get_priority_max(int policy);
51
52#ifdef __cplusplus
53}
54#endif
Definition sched.h:46