Realistic 3D camera system
3D camera system components
timer_queue_set.hpp
Go to the documentation of this file.
1 //
2 // detail/timer_queue_set.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_DETAIL_TIMER_QUEUE_SET_HPP
12 #define ASIO_DETAIL_TIMER_QUEUE_SET_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
20 
22 
23 namespace asio {
24 namespace detail {
25 
27 {
28 public:
29  // Constructor.
31 
32  // Add a timer queue to the set.
34 
35  // Remove a timer queue from the set.
37 
38  // Determine whether all queues are empty.
39  ASIO_DECL bool all_empty() const;
40 
41  // Get the wait duration in milliseconds.
42  ASIO_DECL long wait_duration_msec(long max_duration) const;
43 
44  // Get the wait duration in microseconds.
45  ASIO_DECL long wait_duration_usec(long max_duration) const;
46 
47  // Dequeue all ready timers.
49 
50  // Dequeue all timers.
52 
53 private:
54  timer_queue_base* first_;
55 };
56 
57 } // namespace detail
58 } // namespace asio
59 
61 
62 #if defined(ASIO_HEADER_ONLY)
64 #endif // defined(ASIO_HEADER_ONLY)
65 
66 #endif // ASIO_DETAIL_TIMER_QUEUE_SET_HPP
ASIO_DECL bool all_empty() const
ASIO_DECL long wait_duration_usec(long max_duration) const
ASIO_DECL void get_all_timers(op_queue< operation > &ops)
ASIO_DECL long wait_duration_msec(long max_duration) const
ASIO_DECL void get_ready_timers(op_queue< operation > &ops)
#define ASIO_DECL
Definition: config.hpp:43
ASIO_DECL void insert(timer_queue_base *q)
ASIO_DECL void erase(timer_queue_base *q)