1 /* Copyright (c) 2007-2017. 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
10 #include "src/kernel/activity/ActivityImpl.hpp"
16 XBT_PUBLIC_CLASS Sleep : public ActivityImpl {
18 void suspend() override;
19 void resume() override;
22 sg_host_t host = nullptr; /* The host that is sleeping */
23 surf_action_t surf_sleep = nullptr; /* The Surf sleeping action encapsulated */
26 }}} // namespace simgrid::kernel::activity