]> rtime.felk.cvut.cz Git - frescor/fosa.git/blobdiff - include/fosa_opaque_types.h
Adding FOSA thread groups
[frescor/fosa.git] / include / fosa_opaque_types.h
index 6a0a8d6f92e86365a6a0ce0dba36c16f009e40cf..a658d5e2e88dad89ec5432efb22e696775b5b86f 100644 (file)
@@ -138,6 +138,13 @@ typedef pthread_cond_t FOSA_COND_T_OPAQUE;
 }
 
 
+/* Thread groups */
+/*****************/
+typedef marte_thread_set_t FOSA_THREAD_GROUP_ID_T_OPAQUE;
+
+#define FOSA_NULL_THREAD_GROUP_ID_OPAQUE 0 /* In MaRTE-OS thread_set_t are
+                                     * pointers */
+
 /* FOSA errors */
 /***************/
 /** Not enough memory available **/
@@ -160,6 +167,10 @@ typedef pthread_cond_t FOSA_COND_T_OPAQUE;
 
 #define FOSA_ETIMEDOUT ETIMEDOUT
 
+/* Not found in search (non existing thread, thread_group...) */
+#define FOSA_ESRCH   ESRCH
+#define FOSA_ENOTSUP ENOTSUP
+
 #endif
 
 ///////////////////////  End of MARTE_OS  /////////////////////////////
@@ -204,6 +215,9 @@ typedef int FOSA_SIGNAL_T_OPAQUE;
 typedef pthread_mutex_t FOSA_MUTEX_T_OPAQUE;
 #define    FOSA_COND_T_OPAQUE        pthread_cond_t
 
+/* Thread groups */
+/*****************/
+typedef int FOSA_THREAD_GROUP_ID_T_OPAQUE
 
 /* FOSA Errors */
 /***************/
@@ -386,6 +400,9 @@ enum _fosa_errors_e {
   FOSA_ENOMEM = ENOMEM,
 };
 
+
+
+
 #endif
 /////////////////////////////////// PARTIKLE  END //////////////////////////////////////