-/* 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"
/** @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:
void_pfn_smxprocess_t cleanup_func,
smx_actor_t process);
~RawContext() override;
-public:
+
static void wrapper(void* arg);
void stop() override;
void suspend() override;