1 /* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMIX_SYNCHRO_SLEEP_HPP
7 #define SIMIX_SYNCHRO_SLEEP_HPP
9 #include "src/kernel/activity/ActivityImpl.hpp"
10 #include "surf/surf.hpp"
16 class XBT_PUBLIC SleepImpl : public ActivityImpl {
17 ~SleepImpl() override;
20 explicit SleepImpl(const std::string& name, s4u::Host* host) : ActivityImpl(name), host_(host) {}
22 void finish() override;
23 SleepImpl* start(double duration);
25 sg_host_t host_ = nullptr;
29 } // namespace simgrid::kernel::activity