2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-20 14:42:21 +00:00

re-factor futures

This commit is contained in:
Oliver Kowalke
2015-12-02 17:20:08 +01:00
parent 9063b8dc5b
commit abbc507d13
9 changed files with 417 additions and 760 deletions

View File

@@ -58,7 +58,7 @@ static auto make_dispatcher_context( scheduler * sched) {
thread_local static std::size_t counter;
// schwarz counter
context_initializer::context_initializer() noexcept {
context_initializer::context_initializer() {
if ( 0 == counter++) {
# if defined(BOOST_NO_CXX14_CONSTEXPR) || defined(BOOST_NO_CXX11_STD_ALIGN)
// allocate memory for main context and scheduler