Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
woops, fix MC builds
[simgrid.git] / src / synchro / SynchroSleep.hpp
1 /* Copyright (c) 2007-2016. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #ifndef _SIMIX_SYNCHRO_SLEEP_HPP
7 #define _SIMIX_SYNCHRO_SLEEP_HPP
8
9 #include "surf/surf.h"
10 #include "src/synchro/Synchro.h"
11
12 namespace simgrid {
13 namespace simix {
14
15   XBT_PUBLIC_CLASS Sleep : public Synchro {
16   public:
17     void suspend() override;
18     void resume() override;
19     void post() override;
20
21     sg_host_t host = nullptr;           /* The host that is sleeping */
22     surf_action_t surf_sleep = nullptr; /* The Surf sleeping action encapsulated */
23   };
24
25 }} // namespace simgrid::simix
26
27 #endif