Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef ASIO_DETAIL_EPOLL_REACTOR_FWD_HPP
00012 #define ASIO_DETAIL_EPOLL_REACTOR_FWD_HPP
00013
00014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
00015 # pragma once
00016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
00017
00018 #include "asio/detail/push_options.hpp"
00019
00020 #if !defined(ASIO_DISABLE_EPOLL)
00021 #if defined(__linux__) // This service is only supported on Linux.
00022
00023 #include "asio/detail/push_options.hpp"
00024 #include <linux/version.h>
00025 #include "asio/detail/pop_options.hpp"
00026
00027 #if LINUX_VERSION_CODE >= KERNEL_VERSION (2,5,45) // Only kernels >= 2.5.45.
00028
00029
00030 #define ASIO_HAS_EPOLL 1
00031
00032 namespace asio {
00033 namespace detail {
00034
00035 template <bool Own_Thread>
00036 class epoll_reactor;
00037
00038 }
00039 }
00040
00041 #endif // LINUX_VERSION_CODE >= KERNEL_VERSION (2,5,45)
00042 #endif // defined(__linux__)
00043 #endif // !defined(ASIO_DISABLE_EPOLL)
00044
00045 #include "asio/detail/pop_options.hpp"
00046
00047 #endif // ASIO_DETAIL_EPOLL_REACTOR_FWD_HPP