91,7 → 91,7 |
pr.params=&m; |
|
dummy_task_default_model(m); |
|
|
// create the service task |
// create the communication channel for negotiation and renegotiation |
|
100,14 → 100,17 |
channel[0] = port_create("CHANR",sizeof(struct mess),1,STREAM,READ); |
|
fsf_initialize_contract(&service_contract); |
|
err=fsf_set_contract_basic_parameters(&service_contract,&default_budget,&default_period,FSF_DEFAULT_WORKLOAD); |
if (err) exit(err); |
|
fsf_set_contract_basic_parameters(&service_contract,&default_budget,&default_period,FSF_DEFAULT_WORKLOAD); |
fsf_set_contract_timing_requirements (&service_contract, |
err=fsf_set_contract_timing_requirements (&service_contract, |
true,NULL, |
budget_overrun_sig_notify, |
budget_overrun_sig_value, |
deadline_miss_sig_notify, |
deadline_miss_sig_value); |
if (err) exit(err); |
|
negotiate_contract(&service_contract,&service_server); |
|