mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::ctx: Fixes for boost 1.76 asio API changes.
This commit is contained in:
parent
581300ef9d
commit
85f5dda7e1
1 changed files with 6 additions and 1 deletions
|
@ -3474,7 +3474,11 @@ boost::asio::detail::epoll_reactor::cancel_timer(timer_queue<epoll_time_traits>
|
|||
|
||||
auto *const thread_info
|
||||
{
|
||||
static_cast<scheduler_thread_info *>(scheduler::thread_call_stack::top())
|
||||
#if BOOST_VERSION >= 107600
|
||||
static_cast<scheduler_thread_info *>(scheduler::top_of_thread_call_stack())
|
||||
#else
|
||||
static_cast<scheduler_thread_info *>(scheduler::thread_call_stack::top())
|
||||
#endif
|
||||
};
|
||||
|
||||
std::size_t ret;
|
||||
|
@ -3484,6 +3488,7 @@ boost::asio::detail::epoll_reactor::cancel_timer(timer_queue<epoll_time_traits>
|
|||
ret = queue.cancel_timer(t, ops, max);
|
||||
}
|
||||
|
||||
assert(thread_info);
|
||||
if constexpr(post_priv)
|
||||
thread_info->private_op_queue.push(ops);
|
||||
|
||||
|
|
Loading…
Reference in a new issue