122,7 → 122,7 |
|
} |
|
int fsf_schedule_timed_job |
int fsf_schedule_next_timed_job |
(const struct timespec *at_absolute_time, |
struct timespec *next_budget, |
struct timespec *next_period, |
195,12 → 195,13 |
|
} |
|
int fsf_schedule_triggered_job |
(fsf_synch_obj_handle_t synch_handle, |
struct timespec *next_budget, |
struct timespec *next_period, |
bool *was_deadline_missed, |
bool *was_budget_overran) |
int |
fsf_schedule_next_event_triggered_job |
(fsf_synch_obj_handle_t *synch_handle, |
struct timespec *next_budget, |
struct timespec *next_period, |
bool *was_deadline_missed, |
bool *was_budget_overran) |
{ |
|
TIME T,Q,D; |
247,13 → 248,13 |
if (was_budget_overran != NULL) |
*was_budget_overran = false; |
|
index=hash_fun(synch_handle); |
index=hash_fun(*synch_handle); |
|
if (htable[index].id!=synch_handle) { |
if (htable[index].id!=*synch_handle) { |
oldindex=index; |
index = (index + 1) % MAX_HASH_ENTRY; |
// find |
while (htable[index].id != synch_handle && index!=oldindex) index=(index+1) % MAX_HASH_ENTRY; |
while (htable[index].id != *synch_handle && index!=oldindex) index=(index+1) % MAX_HASH_ENTRY; |
if (index==oldindex) return FSF_ERR_INVALID_SYNCH_OBJ_HANDLE; |
} |
|