X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/022dfa9c45540c987b7e6095d89f4b051fba02ed..c139b4e36702f58bd8a75e87cf537959da82dbc9:/src/s4u/s4u_conditionVariable.cpp diff --git a/src/s4u/s4u_conditionVariable.cpp b/src/s4u/s4u_conditionVariable.cpp index be528ba20c..33e9df79fb 100644 --- a/src/s4u/s4u_conditionVariable.cpp +++ b/src/s4u/s4u_conditionVariable.cpp @@ -1,12 +1,17 @@ +/* Copyright (c) 2006-2017. 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 "src/simix/smx_synchro_private.h" -#include "simgrid/s4u/conditionVariable.hpp" +#include "simgrid/s4u/ConditionVariable.hpp" #include "simgrid/simix.h" +#include "src/simix/smx_synchro_private.hpp" namespace simgrid { namespace s4u { @@ -69,14 +74,14 @@ std::cv_status ConditionVariable::wait_until(std::unique_lock& lock, doub timeout = timeout_time - now; return this->wait_for(lock, timeout); } - + /** * Notify functions */ void ConditionVariable::notify_one() { simcall_cond_signal(cond_); } - + void ConditionVariable::notify_all() { simcall_cond_broadcast(cond_); }