Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 931 → Rev 932

/shark/trunk/ports/first/first-sync.c
122,7 → 122,7
 
}
 
int fsf_schedule_next_timed_job
int fsf_schedule_timed_job
(const struct timespec *at_absolute_time,
struct timespec *next_budget,
struct timespec *next_period,
195,13 → 195,12
 
}
 
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)
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)
{
 
TIME T,Q,D;
248,13 → 247,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;
}
 
/shark/trunk/ports/first/modules/edfstar.c
505,6 → 505,8
 
if (EDFSTAR_private_change_level(l,p)) return 0;
 
if (proc_table[p].avail_time > 0) EDFSTAR_account_capacity(lev,p);
 
/* we call guest_end directly here because the same task may
be reinserted in the queue before calling the preemption check! */
level_table[ lev->scheduling_level ]->