Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics: this is a bool
[simgrid.git] / src / kernel / resource / Action.cpp
index 86f2e2a..4615d31 100644 (file)
@@ -149,14 +149,14 @@ void Action::cancel()
   }
 }
 
-int Action::unref()
+bool Action::unref()
 {
   refcount_--;
   if (not refcount_) {
     delete this;
-    return 1;
+    return true;
   }
-  return 0;
+  return false;
 }
 
 void Action::suspend()