]> rtime.felk.cvut.cz Git - ert_linux.git/commitdiff
Fix/add some comments
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 23 Jul 2013 11:44:23 +0000 (13:44 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 23 Jul 2013 11:44:23 +0000 (13:44 +0200)
ert_linux/ert_linux_multitasking_main.tlc

index 96e7fd0f9878f32810d819c4e348ff07a0691b53..96ca6eaf239c8490e82a5456a8a9c46ecdf8888d 100644 (file)
 %%\r
 %function generateMain() Output\r
   /**\r
-   * This is the thread function of the main loop.\r
+   * This is the thread function of the base rate loop.\r
    * Fundamental sample time = %<fundamentalStepSize>s\r
    */\r
   void * base_rate()\r
     %<modelName>_initialize();\r
     simulationFinished = 0;\r
 \r
+    /* Prepare task attributes */\r
     CHECK0(pthread_attr_init(&attr));\r
     CHECK0(pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED));\r
     CHECK0(pthread_attr_setschedpolicy(&attr, SCHED_FIFO));\r
 \r
     %endforeach\r
 \r
-    /* Starting the main loop */\r
+    /* Starting the base rate thread */\r
     sched_param.sched_priority = MAX_PRIO;\r
     CHECK0(pthread_attr_setschedparam(&attr, &sched_param));\r
     CHECK0(pthread_create(&base_rate_thread, &attr, base_rate, NULL));\r