X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aa19b8ec2814d04500c24d5df65a4e620e8e8969..0d08efd41a22b0813a99a3c206152d2edcbf3f00:/src/s4u/s4u_ConditionVariable.cpp diff --git a/src/s4u/s4u_ConditionVariable.cpp b/src/s4u/s4u_ConditionVariable.cpp index 9df1f73507..9908b0c991 100644 --- a/src/s4u/s4u_ConditionVariable.cpp +++ b/src/s4u/s4u_ConditionVariable.cpp @@ -1,17 +1,15 @@ -/* Copyright (c) 2006-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-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. */ -#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)