From 60e06334b0bae3c8811a14985a3269e58fb05fce Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 23 Jul 2013 13:44:23 +0200 Subject: [PATCH] Fix/add some comments --- ert_linux/ert_linux_multitasking_main.tlc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ert_linux/ert_linux_multitasking_main.tlc b/ert_linux/ert_linux_multitasking_main.tlc index 96e7fd0..96ca6ea 100644 --- a/ert_linux/ert_linux_multitasking_main.tlc +++ b/ert_linux/ert_linux_multitasking_main.tlc @@ -126,7 +126,7 @@ %% %function generateMain() Output /** - * This is the thread function of the main loop. + * This is the thread function of the base rate loop. * Fundamental sample time = %s */ void * base_rate() @@ -228,6 +228,7 @@ %_initialize(); simulationFinished = 0; + /* Prepare task attributes */ CHECK0(pthread_attr_init(&attr)); CHECK0(pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED)); CHECK0(pthread_attr_setschedpolicy(&attr, SCHED_FIFO)); @@ -249,7 +250,7 @@ %endforeach - /* Starting the main loop */ + /* Starting the base rate thread */ sched_param.sched_priority = MAX_PRIO; CHECK0(pthread_attr_setschedparam(&attr, &sched_param)); CHECK0(pthread_create(&base_rate_thread, &attr, base_rate, NULL)); -- 2.39.2