From 1ceb0dfedf2066d138fb32f87db061f6055539e9 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 10 Mar 2014 15:48:09 +0100 Subject: [PATCH] Add mlockall() to the generated code --- ert_linux/ert_linux_main.tlc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ert_linux/ert_linux_main.tlc b/ert_linux/ert_linux_main.tlc index 9238b8d..1b70a0d 100644 --- a/ert_linux/ert_linux_main.tlc +++ b/ert_linux/ert_linux_main.tlc @@ -30,6 +30,7 @@ #include #include #include + #include /* For mlockall() */ #include "%.h" /* Model's header file */ #include "rtwtypes.h" /* MathWorks types */ %if extMode == 1 @@ -234,6 +235,8 @@ (void *)(argv); %endif + CHECKE(mlockall(MCL_FUTURE)); + /* Initialize model */ %_initialize(); simulationFinished = 0; -- 2.39.2