Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h25
1 files changed, 21 insertions, 4 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h
index 8ab3ecf82..31afdc271 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h
@@ -15,22 +15,39 @@
/**
* etSema.h defines a generic interface for platform specific implementations of a semaphore
- *
- * */
+ */
#include "etDatatypes.h"
/**
* etSema holds the object data for a semaphore (for self pointer)
- *
- * */
+ */
typedef struct etSema {
etOSSemaData osData;
} etSema;
+/**
+ * initializes the semaphore
+ * \param self the 'this' pointer of the semaphore
+ */
void etSema_construct(etSema* self);
+
+/**
+ * destroys the semaphore
+ * \param self the 'this' pointer of the semaphore
+ */
void etSema_destruct(etSema* self);
+
+/**
+ * wakes up the semaphore
+ * \param self the 'this' pointer of the semaphore
+ */
void etSema_wakeup(etSema* self);
+
+/**
+ * make the semaphore waiting for a wakeup
+ * \param self the 'this' pointer of the semaphore
+ */
void etSema_waitForWakeup(etSema* self);

Back to the top