Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h
index cff62f5f8..2c67cad14 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h
@@ -23,16 +23,33 @@
/**
* etMutex holds the object data for a mutex (for self pointer)
- *
- * */
+ */
typedef struct etMutex {
etOSMutexData osData;
} etMutex;
+/**
+ * initializes the mutex
+ * \param self the 'this' pointer of the mutex
+ */
void etMutex_construct(etMutex* self);
+
+/**
+ * destroys the mutex
+ * \param self the 'this' pointer of the mutex
+ */
void etMutex_destruct(etMutex* self);
+
+/**
+ * lock the mutex
+ * \param self the 'this' pointer of the mutex
+ */
void etMutex_enter(etMutex* self);
-void etMutex_leave(etMutex* self);
+/**
+ * unlock the mutex
+ * \param self the 'this' pointer of the mutex
+ */
+void etMutex_leave(etMutex* self);
#endif /* _ETMUTEX_H_ */

Back to the top