Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
25d4c2de32e743db8160d489067e910f39762def
[simgrid.git] / src / simix / SynchroRaw.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_RAW_HPP
7 #define _SIMIX_SYNCHRO_RAW_HPP
8
9 #include "surf/surf.h"
10 #include "src/simix/Synchro.h"
11
12 namespace simgrid {
13 namespace simix {
14
15   /** Used to implement mutexes, semaphores and conditions */
16   XBT_PUBLIC_CLASS Raw : public Synchro {
17   public:
18     void suspend();
19     void resume();
20     void post() override;
21
22     surf_action_t sleep;
23   };
24
25 }} // namespace simgrid::simix
26
27 #endif