-/* Copyright (c) 2012-2018. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2012-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. */
#define SIMGRID_KERNEL_ACTIVITY_CONDITIONVARIABLEIMPL_HPP
#include "simgrid/s4u/ConditionVariable.hpp"
-#include "src/simix/ActorImpl.hpp"
+#include "src/kernel/actor/ActorImpl.hpp"
#include <boost/intrusive/list.hpp>
namespace simgrid {
ConditionVariableImpl();
~ConditionVariableImpl();
- simgrid::kernel::actor::SynchroList sleeping; /* list of sleeping processes */
- smx_mutex_t mutex = nullptr;
- simgrid::s4u::ConditionVariable cond_;
+ actor::SynchroList sleeping_; /* list of sleeping processes */
+ MutexImpl* mutex_ = nullptr;
+ s4u::ConditionVariable cond_;
void broadcast();
void signal();
+ void wait(MutexImpl* mutex, double timeout, actor::ActorImpl* issuer, smx_simcall_t simcall);
private:
std::atomic_int_fast32_t refcount_{1};