Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to stabilize gcc with previous fixes
[simgrid.git] / src / kernel / activity / SynchroRaw.hpp
index 05914c05d26f8a18f52ba1bcfdb5ae6139ec2be7..eaa8e9c8a663f29c3387b5c60488b3f5ef5fd79e 100644 (file)
@@ -1,28 +1,30 @@
-/* Copyright (c) 2007-2016. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#ifndef _SIMIX_SYNCHRO_RAW_HPP
-#define _SIMIX_SYNCHRO_RAW_HPP
+#ifndef SIMIX_SYNCHRO_RAW_HPP
+#define SIMIX_SYNCHRO_RAW_HPP
 
-#include "surf/surf.h"
-#include "src/kernel/activity/Synchro.h"
+#include "src/kernel/activity/ActivityImpl.hpp"
+#include "surf/surf.hpp"
 
 namespace simgrid {
-namespace simix {
+namespace kernel {
+namespace activity {
 
   /** Used to implement mutexes, semaphores and conditions */
-  XBT_PUBLIC_CLASS Raw : public Synchro {
-  public:
-    ~Raw() override;
-    void suspend() override;
-    void resume() override;
-    void post() override;
-
-    surf_action_t sleep = nullptr;
+XBT_PUBLIC_CLASS RawImpl : public ActivityImpl
+{
+public:
+  ~RawImpl() override;
+  void suspend() override;
+  void resume() override;
+  void post() override;
+
+  simgrid::kernel::resource::Action* sleep = nullptr;
   };
 
-}} // namespace simgrid::simix
+}}} // namespace simgrid::kernel::activity
 
 #endif