Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c b/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c
index a92a36c49..bca6ecd44 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c
@@ -14,4 +14,15 @@
#include "runtime/etRuntime.h"
+static etSema terminateSemaphore;
+etSema* etRuntime_getTerminateSemaphore() {
+ static etBool initialized = FALSE;
+
+ if (!initialized) {
+ initialized = TRUE;
+ etSema_construct(&terminateSemaphore);
+ }
+
+ return &terminateSemaphore;
+}

Back to the top