Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 1184 → Rev 1183

/demos/trunk/fsf/test2.c
89,6 → 89,9
 
void *test_task_variable(void *arg) {
 
struct timespec next_time;
bool was_deadline_missed = false, was_budget_overran = false;
 
char tmp[100];
long long i;
107,7 → 110,10
sprintf(tmp,"Test Thread V QOS = %5d PID = %3d VLOAD = %3d",task_qos,exec_shadow,var_load);
//mutex_lock(&mux);
if (!was_deadline_missed)
grx_text(tmp,307,20+30*exec_shadow,rgb16(255,255,255),0);
else
grx_text(tmp,307,20+30*exec_shadow,rgb16(255,0,0),0);
//mutex_unlock(&mux);
 
jet_gettable(exec_shadow, &exectime, 1);
136,6 → 142,9
 
void *test_task_constant(void *arg) {
 
struct timespec next_time;
bool was_deadline_missed = false, was_budget_overran = false;
 
char tmp[100];
long long i;
148,7 → 157,10
print_timer(307,10+20*exec_shadow);
sprintf(tmp,"Test Task C QOS = %5d PID = %3d",task_qos,exec_shadow);
//mutex_lock(&mux);
if (!was_deadline_missed)
grx_text(tmp,307,20+20*exec_shadow,rgb16(255,255,255),0);
else
grx_text(tmp,307,20+20*exec_shadow,rgb16(255,0,0),0);
//mutex_unlock(&mux);
for(i = 0; i < 10000*task_qos; i++);