X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/97264d27500aff896d5ef16db2c532fadc0c9c9c..7d95b38c3d4b2911e3cc466e49ca9efbf58e997b:/include/simgrid/s4u/ConditionVariable.hpp diff --git a/include/simgrid/s4u/ConditionVariable.hpp b/include/simgrid/s4u/ConditionVariable.hpp index de52bde921..d090776c38 100644 --- a/include/simgrid/s4u/ConditionVariable.hpp +++ b/include/simgrid/s4u/ConditionVariable.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2022. 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. */ @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -25,8 +26,10 @@ namespace s4u { */ class XBT_PUBLIC ConditionVariable { private: +#ifndef DOXYGEN friend kernel::activity::ConditionVariableImpl; - friend void kernel::activity::intrusive_ptr_release(kernel::activity::ConditionVariableImpl* cond); + friend XBT_PUBLIC void kernel::activity::intrusive_ptr_release(kernel::activity::ConditionVariableImpl* cond); +#endif kernel::activity::ConditionVariableImpl* const pimpl_; @@ -74,7 +77,7 @@ public: /// As long as the predicate is false, wait for the given amount of seconds (specified as a plain double) template bool wait_for(const std::unique_lock& lock, double duration, P pred) { - return this->wait_until(lock, SIMIX_get_clock() + duration, std::move(pred)); + return this->wait_until(lock, Engine::get_clock() + duration, std::move(pred)); } // Wait function taking a C++ style time: