%%\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