]> AND Public Git Repository - simgrid.git/blobdiff - src/simix/SynchroComm.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
int -> bool for smpi tracing (so many of these ...)
[simgrid.git] / src / simix / SynchroComm.hpp
index 0f85b832cfef491a26ce8d8573909ed48bca5bfb..cd02960bbc65d6adb0961c9f05a408eb49bd6884 100644 (file)
@@ -20,13 +20,14 @@ namespace simgrid {
 namespace simix {
 
   XBT_PUBLIC_CLASS Comm : public Synchro {
+    ~Comm() override;
   public:
     Comm(e_smx_comm_type_t type);
-    void suspend();
-    void resume();
+    void suspend() override;
+    void resume() override;
+    void post() override;
     void cancel();
     double remains();
-    void unref();
     void cleanupSurf(); // FIXME: make me protected
 
     e_smx_comm_type_t type;         /* Type of the communication (SIMIX_COMM_SEND or SIMIX_COMM_RECEIVE) */
@@ -37,7 +38,6 @@ namespace simix {
                                        (comm.mbox set to NULL when the communication is removed from the mailbox
                                        (used as garbage collector)) */
 #endif
-    int refcount = 1;               /* Number of processes involved in the cond */
     bool detached = false;          /* If detached or not */
 
     void (*clean_fun)(void*);       /* Function to clean the detached src_buf if something goes wrong */