X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/81588aeededcff1407c760226b43f347eb832b39..b08cf565e62c980d3fa23c031b341ca4f1427bd9:/src/simix/ContextRaw.cpp diff --git a/src/simix/ContextRaw.cpp b/src/simix/ContextRaw.cpp index 88d05bf202..b9bd0fed12 100644 --- a/src/simix/ContextRaw.cpp +++ b/src/simix/ContextRaw.cpp @@ -4,13 +4,6 @@ /* 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. */ -/** \file RawContext.cpp - * Fast context switching inspired from SystemV ucontexts. - * - * In contrast to System V context, it does not touch the signal mask - * which avoids making a system call (at least on Linux). - */ - #include #include @@ -35,6 +28,11 @@ namespace simix { class RawContext; 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 + * 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;