mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 23:14:13 +01:00
ircd::ctx: Fixes for boost 1.80.
This commit is contained in:
parent
10be6e5add
commit
30701b24cc
1 changed files with 9 additions and 0 deletions
|
@ -245,6 +245,8 @@ ircd::ctx::ctx::jump()
|
||||||
assert(this->yc);
|
assert(this->yc);
|
||||||
assert(current != this); // can't jump to self
|
assert(current != this); // can't jump to self
|
||||||
|
|
||||||
|
//TODO: XXX
|
||||||
|
#if BOOST_VERSION < 108000
|
||||||
auto &yc(*this->yc);
|
auto &yc(*this->yc);
|
||||||
auto &target(*yc.coro_.lock());
|
auto &target(*yc.coro_.lock());
|
||||||
|
|
||||||
|
@ -259,6 +261,7 @@ ircd::ctx::ctx::jump()
|
||||||
target();
|
target();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
assert(current != this);
|
assert(current != this);
|
||||||
assert(current->notes == 1); // notes = 1; set by continuation dtor on wakeup
|
assert(current->notes == 1); // notes = 1; set by continuation dtor on wakeup
|
||||||
|
@ -3353,6 +3356,7 @@ ircd::ctx::stack::allocator::deallocate(stack_context &c)
|
||||||
// (internal) boost::asio
|
// (internal) boost::asio
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if BOOST_VERSION < 108000
|
||||||
template<class Function>
|
template<class Function>
|
||||||
struct [[gnu::visibility("hidden")]]
|
struct [[gnu::visibility("hidden")]]
|
||||||
boost::asio::detail::spawn_data
|
boost::asio::detail::spawn_data
|
||||||
|
@ -3381,7 +3385,9 @@ boost::asio::detail::spawn_data
|
||||||
assert(ctrl);
|
assert(ctrl);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if BOOST_VERSION < 108000
|
||||||
template<class Function>
|
template<class Function>
|
||||||
struct [[gnu::visibility("hidden")]]
|
struct [[gnu::visibility("hidden")]]
|
||||||
boost::asio::detail::coro_entry_point
|
boost::asio::detail::coro_entry_point
|
||||||
|
@ -3411,7 +3417,9 @@ boost::asio::detail::coro_entry_point
|
||||||
|
|
||||||
shared_ptr<spawn_data<Handler, Function>> data;
|
shared_ptr<spawn_data<Handler, Function>> data;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if BOOST_VERSION < 108000
|
||||||
// Hooks the first push phase of coroutine spawn to supply our own stack
|
// Hooks the first push phase of coroutine spawn to supply our own stack
|
||||||
// allocator.
|
// allocator.
|
||||||
template<class Function>
|
template<class Function>
|
||||||
|
@ -3444,6 +3452,7 @@ boost::asio::detail::spawn_helper
|
||||||
shared_ptr<spawn_data<Handler, Function>> data_;
|
shared_ptr<spawn_data<Handler, Function>> data_;
|
||||||
boost::coroutines::attributes attributes_;
|
boost::coroutines::attributes attributes_;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue