00001 // 00002 // deadline_timer.hpp 00003 // ~~~~~~~~~~~~~~~~~~ 00004 // 00005 // Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com) 00006 // 00007 // Distributed under the Boost Software License, Version 1.0. (See accompanying 00008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00009 // 00010 00011 #ifndef ASIO_DEADLINE_TIMER_HPP 00012 #define ASIO_DEADLINE_TIMER_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 #include "asio/detail/socket_types.hpp" // Must come before posix_time. 00021 00022 #include "asio/detail/push_options.hpp" 00023 #include <boost/date_time/posix_time/posix_time_types.hpp> 00024 #include "asio/detail/pop_options.hpp" 00025 00026 #include "asio/basic_deadline_timer.hpp" 00027 00028 namespace asio { 00029 00031 typedef basic_deadline_timer<boost::posix_time::ptime> deadline_timer; 00032 00033 } // namespace asio 00034 00035 #include "asio/detail/pop_options.hpp" 00036 00037 #endif // ASIO_DEADLINE_TIMER_HPP