File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 10
10
#include < cassert>
11
11
#include < algorithm>
12
12
#include < thread>
13
+ #include < vector>
13
14
14
15
#if CPPCORO_OS_WINNT
15
16
# ifndef WIN32_LEAN_AND_MEAN
@@ -998,8 +999,7 @@ cppcoro::io_service::timed_schedule_operation::timed_schedule_operation(
998
999
{
999
1000
#if CPPCORO_OS_LINUX
1000
1001
m_cancellationRegistration.emplace (std::move (m_cancellationToken), [&service, this ] {
1001
- m_message.result = -ECANCELED;
1002
- service.io_queue ().transaction (m_message).timeout_remove ().nop ().commit ();
1002
+ service.io_queue ().transaction (m_message).timeout_remove ().commit ();
1003
1003
});
1004
1004
#endif
1005
1005
}
Original file line number Diff line number Diff line change @@ -118,8 +118,7 @@ namespace cppcoro::detail::lnx {
118
118
119
119
io_transaction &io_transaction::timeout_remove (int flags) noexcept {
120
120
if (m_sqe) {
121
- io_uring_prep_timeout_remove (m_sqe, *reinterpret_cast <uint64_t *>(&m_message), flags);
122
- m_message.result = -ECANCELED;
121
+ io_uring_prep_timeout_remove (m_sqe, reinterpret_cast <uint64_t >(&m_message), flags);
123
122
}
124
123
return *this ;
125
124
}
You can’t perform that action at this time.
0 commit comments