Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
d416f90dd0bb447127422de13451c2bbd024b6ab
[simgrid.git] / src / kernel / activity / SynchroRaw.hpp
1 /* Copyright (c) 2007-2017. 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_RAW_HPP
7 #define SIMIX_SYNCHRO_RAW_HPP
8
9 #include "src/kernel/activity/ActivityImpl.hpp"
10 #include "surf/surf.hpp"
11
12 namespace simgrid {
13 namespace kernel {
14 namespace activity {
15
16   /** Used to implement mutexes, semaphores and conditions */
17 XBT_PUBLIC_CLASS RawImpl : public ActivityImpl
18 {
19 public:
20   ~RawImpl() override;
21   void suspend() override;
22   void resume() override;
23   void post() override;
24
25   surf_action_t sleep = nullptr;
26   };
27
28 }}} // namespace simgrid::kernel::activity
29
30 #endif