X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/35e51746af39c4061a0336771f8f31bb371fae23..524de5f4ae0694f650b58ce80c901db748c9fe93:/src/kernel/context/ContextRaw.cpp diff --git a/src/kernel/context/ContextRaw.cpp b/src/kernel/context/ContextRaw.cpp index a49ead0b27..057d46e8da 100644 --- a/src/kernel/context/ContextRaw.cpp +++ b/src/kernel/context/ContextRaw.cpp @@ -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 +#include "src/internal_config.h" -#include -#include - -#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;