]> AND Private Git Repository - loba.git/blobdiff - communicator.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Define classes for mutex and condition objects.
[loba.git] / communicator.h
index c335920871dce5dfc785989620aea9c2e9ebbdc8..b51f743d8aedb4ed5ceffcc39c6a84c1db854893 100644 (file)
@@ -8,6 +8,7 @@
 #include <string>
 #include <msg/msg.h>
 #include "hostdata.h"
 #include <string>
 #include <msg/msg.h>
 #include "hostdata.h"
+#include "synchro.h"
 
 class message {
 public:
 
 class message {
 public:
@@ -53,8 +54,8 @@ private:
     std::queue<m_task_t> received;
 
     // Handling of receiving thread
     std::queue<m_task_t> received;
 
     // Handling of receiving thread
-    xbt_mutex_t receiver_mutex;
-    xbt_cond_t receiver_cond;
+    mutex_t receiver_mutex;
+    condition_t receiver_cond;
     m_process_t receiver_thread;
     static int receiver_wrapper(int, char* []);
     void receiver();
     m_process_t receiver_thread;
     static int receiver_wrapper(int, char* []);
     void receiver();