X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ecd5f7562caf1d443bf22788fa5f4fac408776ec..ff6d4d968f880f2c5d9854e7786034fd27f8b868:/include/xbt/signal.hpp diff --git a/include/xbt/signal.hpp b/include/xbt/signal.hpp index d5ad826fa2..1cd6e06f41 100644 --- a/include/xbt/signal.hpp +++ b/include/xbt/signal.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2018. 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 disconnectSlots() { handlers_.clear(); } + int getSlotsAmount() { return handlers_.size(); } }; }