]> AND Public Git Repository - simgrid.git/blobdiff - include/xbt/signal.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check validity for extension (Framagit issue #10).
[simgrid.git] / include / xbt / signal.hpp
index d5ad826fa2bd962b94fe03e7ec5a17722aab9314..2900ad45a73d1591be93fe9c861c9a4e76ff8760 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -37,10 +37,8 @@ namespace xbt {
       for (auto const& handler : handlers_)
         handler(args...);
     }
-    void disconnect_all_slots()
-    {
-      handlers_.clear();
-    }
+    void disconnect_slots() { handlers_.clear(); }
+    int get_slot_count() { return handlers_.size(); }
   };
 
 }