X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aa19b8ec2814d04500c24d5df65a4e620e8e8969..29a3b2869c0075fc75e8ccc66fc1d9c4c8bf6a85:/src/s4u/s4u_ConditionVariable.cpp diff --git a/src/s4u/s4u_ConditionVariable.cpp b/src/s4u/s4u_ConditionVariable.cpp index 9df1f73507..4d053aed3f 100644 --- a/src/s4u/s4u_ConditionVariable.cpp +++ b/src/s4u/s4u_ConditionVariable.cpp @@ -3,15 +3,13 @@ /* 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. */ -#include -#include - -#include -#include - #include "simgrid/s4u/ConditionVariable.hpp" #include "simgrid/simix.h" #include "src/kernel/activity/ConditionVariableImpl.hpp" +#include "xbt/log.hpp" + +#include +#include namespace simgrid { namespace s4u { @@ -66,12 +64,12 @@ std::cv_status ConditionVariable::wait_until(std::unique_lock& lock, doub */ void ConditionVariable::notify_one() { - simgrid::simix::kernelImmediate([this]() { cond_->signal(); }); + simgrid::simix::simcall([this]() { cond_->signal(); }); } void ConditionVariable::notify_all() { - simgrid::simix::kernelImmediate([this]() { cond_->broadcast(); }); + simgrid::simix::simcall([this]() { cond_->broadcast(); }); } void intrusive_ptr_add_ref(ConditionVariable* cond)