diff options
Diffstat (limited to 'libs/context/src/execution_context.cpp')
-rw-r--r-- | libs/context/src/execution_context.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libs/context/src/execution_context.cpp b/libs/context/src/execution_context.cpp new file mode 100644 index 000000000..969a74bdd --- /dev/null +++ b/libs/context/src/execution_context.cpp @@ -0,0 +1,36 @@ + +// Copyright Oliver Kowalke 2009. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +#include <boost/context/detail/config.hpp> + +#if ! defined(BOOST_CONTEXT_NO_EXECUTION_CONTEXT) + +# include "boost/context/execution_context.hpp" + +# include <boost/config.hpp> + +# ifdef BOOST_HAS_ABI_HEADERS +# include BOOST_ABI_PREFIX +# endif + +namespace boost { +namespace context { + +thread_local +execution_context::fcontext +execution_context::main_ctx_; + +thread_local +execution_context::ptr_t +execution_context::current_ctx_ = & execution_context::main_ctx_; + +}} + +# ifdef BOOST_HAS_ABI_HEADERS +# include BOOST_ABI_SUFFIX +# endif + +#endif |