X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/efd5719fdcd06a99d1fd644b81c7e9d578c08fc5..e058e06362ce27135c41d3657840f9fd78667687:/include/xbt/signal.hpp diff --git a/include/xbt/signal.hpp b/include/xbt/signal.hpp index 2068546289..de3c031317 100644 --- a/include/xbt/signal.hpp +++ b/include/xbt/signal.hpp @@ -8,9 +8,15 @@ #ifdef SIMGRID_HAVE_LIBSIG #include +#else +#include +#endif namespace simgrid { namespace xbt { + +#ifdef SIMGRID_HAVE_LIBSIG + // Wraps sigc++ signals with the interface of boost::signals2: template class signal; template @@ -33,20 +39,20 @@ namespace xbt { { return sig_.emit(std::forward(args)...); } + void disconnect_all_slots() + { + sig_.clear(); + } }; -} -} #else -#include -namespace simgrid { -namespace xbt { template using signal = ::boost::signals2::signal; -} -} #endif -#endif +} +} + +#endif \ No newline at end of file