]> rtime.felk.cvut.cz Git - frescor/fosa.git/commitdiff
renaming thread_group to thread_set and test_thread_groups to
authortelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 7 Nov 2008 11:14:27 +0000 (11:14 +0000)
committertelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 7 Nov 2008 11:14:27 +0000 (11:14 +0000)
test_group_clocks.

git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@1391 35b4ef3e-fd22-0410-ab77-dab3279adceb

src_marte_os/tests/test_group_clocks/test_group_clocks.c [moved from src_marte_os/tests/test_group_clocks/test_thread_groups.c with 94% similarity]

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 a5755b3592d99f911e6d7e9d772754c3ebe4feda..ca9bb5a3881dda7769d4931f9ab1e2fc6105465d 100644 (file)
@@ -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);
     }