X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4bb73cb3914b5f7b77a9ec1f8abe728e637cc016..d8eb62b207b566949a0d9ce649a7b21e226b9168:/include/simgrid/s4u/ConditionVariable.hpp diff --git a/include/simgrid/s4u/ConditionVariable.hpp b/include/simgrid/s4u/ConditionVariable.hpp index 5efc7f9bc8..06037981ee 100644 --- a/include/simgrid/s4u/ConditionVariable.hpp +++ b/include/simgrid/s4u/ConditionVariable.hpp @@ -6,19 +6,10 @@ #ifndef SIMGRID_S4U_COND_VARIABLE_HPP #define SIMGRID_S4U_COND_VARIABLE_HPP -#include -#include -#include -#include -#include // std::swap - -#include - -#include - #include #include -#include + +#include namespace simgrid { namespace s4u { @@ -30,10 +21,9 @@ namespace s4u { * semantic. But we currently use (only) double for both durations and * timestamp timeouts. */ -XBT_PUBLIC_CLASS ConditionVariable -{ +class XBT_PUBLIC ConditionVariable { private: - friend s_smx_cond_t; + friend kernel::activity::ConditionVariableImpl; smx_cond_t cond_; explicit ConditionVariable(smx_cond_t cond) : cond_(cond) {} public: @@ -44,7 +34,10 @@ public: friend XBT_PUBLIC void intrusive_ptr_release(ConditionVariable * cond); using Ptr = boost::intrusive_ptr; - static Ptr createConditionVariable(); + static Ptr create(); + + /** @deprecated See Comm::get_mailbox() */ + XBT_ATTRIB_DEPRECATED_v323("Please use Comm::get_mailbox()") Ptr createConditionVariable() { return create(); } // Wait functions without time: