1 /* Copyright (c) 2007-2023. 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 SIMGRID_KERNEL_ACTIVITY_SLEEP_HPP
7 #define SIMGRID_KERNEL_ACTIVITY_SLEEP_HPP
9 #include "src/kernel/activity/ActivityImpl.hpp"
11 namespace simgrid::kernel::activity {
13 class XBT_PUBLIC SleepImpl : public ActivityImpl_T<SleepImpl> {
14 sg_host_t host_ = nullptr;
18 SleepImpl& set_host(s4u::Host* host);
19 SleepImpl& set_duration(double duration);
20 void set_exception(actor::ActorImpl* issuer) override;
21 void finish() override;
24 } // namespace simgrid::kernel::activity