From: telleriam Date: Fri, 7 Nov 2008 11:14:27 +0000 (+0000) Subject: renaming thread_group to thread_set and test_thread_groups to X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/fosa.git/commitdiff_plain/45c659a7344544e3b9f265a0f21d7b30eb05c827?ds=sidebyside renaming thread_group to thread_set and test_thread_groups to test_group_clocks. git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@1391 35b4ef3e-fd22-0410-ab77-dab3279adceb --- diff --git a/src_marte_os/tests/test_group_clocks/test_thread_groups.c b/src_marte_os/tests/test_group_clocks/test_group_clocks.c similarity index 94% rename from src_marte_os/tests/test_group_clocks/test_thread_groups.c rename to src_marte_os/tests/test_group_clocks/test_group_clocks.c index a5755b3..ca9bb5a 100644 --- a/src_marte_os/tests/test_group_clocks/test_thread_groups.c +++ b/src_marte_os/tests/test_group_clocks/test_group_clocks.c @@ -132,7 +132,7 @@ int main () 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; @@ -173,16 +173,16 @@ int main () 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); @@ -196,26 +196,26 @@ int main () 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); }