fosa_rel_time_t eat_time_A, eat_time_B, eat_time_C, group_time;
fosa_signal_info_t siginfo_A, siginfo_B, siginfo_C, siginfo_timer;
- fosa_thread_group_id_t thread_group_id;
+ fosa_thread_set_id_t thread_set_id;
fosa_clock_id_t group_clock_id;
fosa_timer_id_t group_timer;
create_thread(catcher_thread, NULL, PRIO_CATCHER, &tid_catcher);
- /* We create the thread group, get its clock and create a timer */
+ /* We create the thread set, get its clock and create a timer */
/****************************************************************/
- err = fosa_thread_group_create(&thread_group_id);
+ err = fosa_thread_set_create(&thread_set_id);
if (err != 0)
{
- printf("MAIN: Error %d creating thread_group\n", err);
+ printf("MAIN: Error %d creating thread_set\n", err);
exit(1);
}
- err = fosa_get_groupcpu_clock(thread_group_id, &group_clock_id);
+ err = fosa_get_groupcpu_clock(thread_set_id, &group_clock_id);
if (err != 0)
{
printf("MAIN: Error %d obtaining group clock\n", err);
exit(1);
}
- /* We add the 3 threads to the group */
+ /* We add the 3 threads to the set */
/*************************************/
- err = fosa_thread_group_add(thread_group_id, tid_A);
+ err = fosa_thread_set_add(thread_set_id, tid_A);
if (err != 0)
{
- printf("MAIN: Error %d adding thread to thread group\n", err);
+ printf("MAIN: Error %d adding thread to thread set\n", err);
exit(1);
}
- err = fosa_thread_group_add(thread_group_id, tid_B);
+ err = fosa_thread_set_add(thread_set_id, tid_B);
if (err != 0)
{
- printf("MAIN: Error %d adding thread to thread group\n", err);
+ printf("MAIN: Error %d adding thread to thread set\n", err);
exit(1);
}
- err = fosa_thread_group_add(thread_group_id, tid_C);
+ err = fosa_thread_set_add(thread_set_id, tid_C);
if (err != 0)
{
- printf("MAIN: Error %d adding thread to thread group\n", err);
+ printf("MAIN: Error %d adding thread to thread set\n", err);
exit(1);
}