summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/context/src
diff options
context:
space:
mode:
authorbugaevskiy <[email protected]>2022-12-31 17:40:08 +0300
committerbugaevskiy <[email protected]>2022-12-31 17:40:08 +0300
commit030896f914b07ae082ccf0b6b00df926d22d2454 (patch)
treee520bd22d01faaf07ff303c49ad2fdfefa114f67 /contrib/restricted/boost/context/src
parent014fdab1c4bb0fedea59974a6bb13ef3ec3b67cb (diff)
Remove Boost metaproject
Diffstat (limited to 'contrib/restricted/boost/context/src')
-rw-r--r--contrib/restricted/boost/context/src/continuation.cpp58
-rw-r--r--contrib/restricted/boost/context/src/fiber.cpp58
2 files changed, 0 insertions, 116 deletions
diff --git a/contrib/restricted/boost/context/src/continuation.cpp b/contrib/restricted/boost/context/src/continuation.cpp
deleted file mode 100644
index 2d7769602a7..00000000000
--- a/contrib/restricted/boost/context/src/continuation.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// Copyright Oliver Kowalke 2017.
-// 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)
-
-#if defined(BOOST_USE_UCONTEXT)
-#include "boost/context/continuation_ucontext.hpp"
-#elif defined(BOOST_USE_WINFIB)
-#include "boost/context/continuation_winfib.hpp"
-#endif
-
-#include <boost/config.hpp>
-
-#ifdef BOOST_HAS_ABI_HEADERS
-# include BOOST_ABI_PREFIX
-#endif
-
-namespace boost {
-namespace context {
-namespace detail {
-
-// zero-initialization
-thread_local activation_record * current_rec;
-thread_local static std::size_t counter;
-
-// schwarz counter
-activation_record_initializer::activation_record_initializer() noexcept {
- if ( 0 == counter++) {
- current_rec = new activation_record();
- }
-}
-
-activation_record_initializer::~activation_record_initializer() {
- if ( 0 == --counter) {
- BOOST_ASSERT( current_rec->is_main_context() );
- delete current_rec;
- }
-}
-
-}
-
-namespace detail {
-
-activation_record *&
-activation_record::current() noexcept {
- // initialized the first time control passes; per thread
- thread_local static activation_record_initializer initializer;
- return current_rec;
-}
-
-}
-
-}}
-
-#ifdef BOOST_HAS_ABI_HEADERS
-# include BOOST_ABI_SUFFIX
-#endif
diff --git a/contrib/restricted/boost/context/src/fiber.cpp b/contrib/restricted/boost/context/src/fiber.cpp
deleted file mode 100644
index b6b790df544..00000000000
--- a/contrib/restricted/boost/context/src/fiber.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// Copyright Oliver Kowalke 2017.
-// 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)
-
-#if defined(BOOST_USE_UCONTEXT)
-#include "boost/context/fiber_ucontext.hpp"
-#elif defined(BOOST_USE_WINFIB)
-#include "boost/context/fiber_winfib.hpp"
-#endif
-
-#include <boost/config.hpp>
-
-#ifdef BOOST_HAS_ABI_HEADERS
-# include BOOST_ABI_PREFIX
-#endif
-
-namespace boost {
-namespace context {
-namespace detail {
-
-// zero-initialization
-thread_local fiber_activation_record * fib_current_rec;
-thread_local static std::size_t counter;
-
-// schwarz counter
-fiber_activation_record_initializer::fiber_activation_record_initializer() noexcept {
- if ( 0 == counter++) {
- fib_current_rec = new fiber_activation_record();
- }
-}
-
-fiber_activation_record_initializer::~fiber_activation_record_initializer() {
- if ( 0 == --counter) {
- BOOST_ASSERT( fib_current_rec->is_main_context() );
- delete fib_current_rec;
- }
-}
-
-}
-
-namespace detail {
-
-fiber_activation_record *&
-fiber_activation_record::current() noexcept {
- // initialized the first time control passes; per thread
- thread_local static fiber_activation_record_initializer initializer;
- return fib_current_rec;
-}
-
-}
-
-}}
-
-#ifdef BOOST_HAS_ABI_HEADERS
-# include BOOST_ABI_SUFFIX
-#endif