X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/56293e11c41ea2baf948bc3d680443a064834970..7e34d26dd133ad8707b8322995fe7164d96a406b:/src/kernel/activity/SynchroRaw.hpp diff --git a/src/kernel/activity/SynchroRaw.hpp b/src/kernel/activity/SynchroRaw.hpp index 8ff877e31e..b4ed3931c6 100644 --- a/src/kernel/activity/SynchroRaw.hpp +++ b/src/kernel/activity/SynchroRaw.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2021. 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. */ @@ -8,6 +8,7 @@ #include "src/kernel/activity/ActivityImpl.hpp" #include "surf/surf.hpp" +#include namespace simgrid { namespace kernel { @@ -17,8 +18,10 @@ namespace activity { class XBT_PUBLIC RawImpl : public ActivityImpl_T { sg_host_t host_ = nullptr; double timeout_ = -1; + std::function finish_callback_; public: + explicit RawImpl(const std::function& finish_callback) : finish_callback_(finish_callback) {} RawImpl& set_host(s4u::Host* host); RawImpl& set_timeout(double timeout) override;