X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/fosa.git/blobdiff_plain/3d1082a76a4d382dfc8a4c747f4de8300d48a978..37a7e2d45b116e61074de9861ffd192933c7d06a:/src_marte/tests/test_cpu_clocks/test_cpu_clocks_sigwait_from_different_thread.c diff --git a/src_marte/tests/test_cpu_clocks/test_cpu_clocks_sigwait_from_different_thread.c b/src_marte/tests/test_cpu_clocks/test_cpu_clocks_sigwait_from_different_thread.c index cb1448e..378004f 100644 --- a/src_marte/tests/test_cpu_clocks/test_cpu_clocks_sigwait_from_different_thread.c +++ b/src_marte/tests/test_cpu_clocks/test_cpu_clocks_sigwait_from_different_thread.c @@ -33,15 +33,15 @@ int main () { int err = -1; - frsh_thread_attr_t attr; - frsh_thread_id_t tid; + fosa_thread_attr_t attr; + fosa_thread_id_t tid; - frsh_signal_t signal_received; - frsh_signal_info_t info_received; + fosa_signal_t signal_received; + fosa_signal_info_t info_received; struct timespec work_interval = {3, 200000000}; // 3.2 seconds - frsh_signal_t signal_set[1]; + fosa_signal_t signal_set[1]; @@ -67,7 +67,7 @@ int main () /* At the same time ensure that the main priority is */ /* higher */ /********************************************************/ - if (frsh_thread_attr_init (&attr) != 0) { + if (fosa_thread_attr_init (&attr) != 0) { printf("Error while initializing the attributes\n"); exit(1); } @@ -91,7 +91,7 @@ int main () /* and real time differ */ /*********************************************************/ printf("Main works for some time...\n"); - frsh_eat(&work_interval); + fosa_eat(&work_interval); /* Now we do the wait in order to allow the thread to run */ /**********************************************************/ @@ -123,7 +123,7 @@ static void * thread_body(void *thread_arg) fosa_timer_id_t timerid; struct timespec budget = {-1, -1}; - frsh_signal_info_t info_programmed; + fosa_signal_info_t info_programmed; memset(&clockid, 0, sizeof(clockid) ); memset(&timerid, 0, sizeof(timerid) ); @@ -160,7 +160,7 @@ static void * thread_body(void *thread_arg) printf("Start periodic work at %d, %d\n", before_work_time.tv_sec, before_work_time.tv_nsec); - frsh_eat(&work_interval); + fosa_eat(&work_interval); err = fosa_clock_get_time(FOSA_CLOCK_REALTIME, &after_work_time); assert(err == 0);