mirror of https://github.com/zrafa/xinu-avr.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
446 B
16 lines
446 B
/* resched.h */ |
|
|
|
/* Constants and variables related to deferred rescheduling */ |
|
|
|
#define DEFER_START 1 /* Start deferred rescehduling */ |
|
#define DEFER_STOP 2 /* Stop deferred rescehduling */ |
|
|
|
/* Structure that collects items related to deferred rescheduling */ |
|
|
|
struct defer { |
|
int32 ndefers; /* Number of outstanding defers */ |
|
bool8 attempt; /* Was resched called during the */ |
|
/* deferral period? */ |
|
}; |
|
|
|
extern struct defer Defer;
|
|
|