Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
[simgrid.git] / src / kernel / context / ContextRaw.cpp
index a49ead0..057d46e 100644 (file)
@@ -1,19 +1,11 @@
-/* Copyright (c) 2009-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2009-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. */
 
-#include <math.h>
+#include "src/internal_config.h"
 
-#include <utility>
-#include <functional>
-
-#include "src/internal_config.h" 
-
-#include "xbt/log.h"
 #include "xbt/parmap.h"
-#include "xbt/dynar.h"
 
 #include "src/simix/smx_private.h"
 #include "mc/mc.h"
@@ -31,12 +23,12 @@ class RawContextFactory;
 
 /** @brief Fast context switching inspired from SystemV ucontexts.
   *
-  * The main difference to the System V context is that Raw Contexts are much faster because they don't 
+  * The main difference to the System V context is that Raw Contexts are much faster because they don't
   * preserve the signal mask when switching. This saves a system call (at least on Linux) on each context switch.
   */
 class RawContext : public Context {
 protected:
-  void* stack_ = nullptr; 
+  void* stack_ = nullptr;
   /** pointer to top the stack stack */
   void* stack_top_ = nullptr;
 public:
@@ -45,7 +37,7 @@ public:
           void_pfn_smxprocess_t cleanup_func,
           smx_actor_t process);
   ~RawContext() override;
-public:
+
   static void wrapper(void* arg);
   void stop() override;
   void suspend() override;