X-Git-Url: http://rtime.felk.cvut.cz/gitweb/ert_linux.git/blobdiff_plain/1ceb0dfedf2066d138fb32f87db061f6055539e9..1cef731537f9e01735d8f0b49424c391698ef5f3:/ert_linux/ert_linux_main.tlc diff --git a/ert_linux/ert_linux_main.tlc b/ert_linux/ert_linux_main.tlc index 1b70a0d..85830b6 100644 --- a/ert_linux/ert_linux_main.tlc +++ b/ert_linux/ert_linux_main.tlc @@ -29,6 +29,7 @@ #include /* Semaphores library header file */ #include #include + #include #include #include /* For mlockall() */ #include "%.h" /* Model's header file */ @@ -37,6 +38,11 @@ #include "ext_work.h" /* External mode header file */ %endif + #ifndef TRUE + #define TRUE true + #define FALSE false + #endif + /*==================* * Required defines * *==================*/ @@ -116,6 +122,7 @@ %_step%(); sem_wait(&sub_rate[%].sem); /* sem_val = 0 */ } + return NULL; } %endforeach %endfunction @@ -235,7 +242,7 @@ (void *)(argv); %endif - CHECKE(mlockall(MCL_FUTURE)); + CHECKE(mlockall(MCL_CURRENT | MCL_FUTURE)); /* Initialize model */ %_initialize();