11 #ifndef ASIO_DETAIL_IMPL_EPOLL_REACTOR_HPP 12 #define ASIO_DETAIL_IMPL_EPOLL_REACTOR_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 18 #if defined(ASIO_HAS_EPOLL) 25 template <
typename Time_Traits>
26 void epoll_reactor::add_timer_queue(timer_queue<Time_Traits>& queue)
28 do_add_timer_queue(queue);
31 template <
typename Time_Traits>
32 void epoll_reactor::remove_timer_queue(timer_queue<Time_Traits>& queue)
34 do_remove_timer_queue(queue);
37 template <
typename Time_Traits>
38 void epoll_reactor::schedule_timer(timer_queue<Time_Traits>& queue,
39 const typename Time_Traits::time_type& time,
40 typename timer_queue<Time_Traits>::per_timer_data& timer, wait_op* op)
46 io_service_.post_immediate_completion(op,
false);
50 bool earliest = queue.enqueue_timer(time, timer, op);
51 io_service_.work_started();
56 template <
typename Time_Traits>
57 std::size_t epoll_reactor::cancel_timer(timer_queue<Time_Traits>& queue,
58 typename timer_queue<Time_Traits>::per_timer_data& timer,
59 std::size_t max_cancelled)
62 op_queue<operation> ops;
63 std::size_t n = queue.cancel_timer(timer, ops, max_cancelled);
65 io_service_.post_deferred_completions(ops);
74 #endif // defined(ASIO_HAS_EPOLL) 76 #endif // ASIO_DETAIL_IMPL_EPOLL_REACTOR_HPP
asio::detail::scoped_lock< null_mutex > scoped_lock