version 1.17.10.1, 2023/02/23 17:13:01
|
version 1.18, 2023/02/25 15:55:01
|
Line 182 extern char sched_Error[];
|
Line 182 extern char sched_Error[];
|
void sched_SetErr(int, char *, ...); |
void sched_SetErr(int, char *, ...); |
|
|
|
|
|
static inline struct timespec * |
|
sched_timespecmin(struct timespec * __restrict spa, struct timespec * __restrict spb) |
|
{ |
|
assert(spa && spb); |
|
|
|
if (sched_timespecisinf(spa)) |
|
return spb; |
|
if (sched_timespecisinf(spb)) |
|
return spa; |
|
|
|
if (spa->tv_sec == spb->tv_sec) |
|
return (spa->tv_nsec < spb->tv_nsec) ? spa : spb; |
|
else |
|
return (spa->tv_sec < spb->tv_sec) ? spa : spb; |
|
} |
|
|
static inline void |
static inline void |
remove_task_from(sched_task_t * __restrict t, sched_queue_t * __restrict q) |
remove_task_from(sched_task_t * __restrict t, sched_queue_t * __restrict q) |
{ |
{ |