• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>wait_traits</title>
5<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../boost_asio.html" title="Boost.Asio">
8<link rel="up" href="../reference.html" title="Reference">
9<link rel="prev" href="uses_executor.html" title="uses_executor">
10<link rel="next" href="wait_traits/to_wait_duration.html" title="wait_traits::to_wait_duration">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
15<td align="center"><a href="../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="uses_executor.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="wait_traits/to_wait_duration.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="boost_asio.reference.wait_traits"></a><a class="link" href="wait_traits.html" title="wait_traits">wait_traits</a>
28</h3></div></div></div>
29<p>
30        Wait traits suitable for use with the <a class="link" href="basic_waitable_timer.html" title="basic_waitable_timer"><code class="computeroutput">basic_waitable_timer</code></a>
31        class template.
32      </p>
33<pre class="programlisting">template&lt;
34    typename Clock&gt;
35struct wait_traits
36</pre>
37<h5>
38<a name="boost_asio.reference.wait_traits.h0"></a>
39        <span class="phrase"><a name="boost_asio.reference.wait_traits.member_functions"></a></span><a class="link" href="wait_traits.html#boost_asio.reference.wait_traits.member_functions">Member
40        Functions</a>
41      </h5>
42<div class="informaltable"><table class="table">
43<colgroup>
44<col>
45<col>
46</colgroup>
47<thead><tr>
48<th>
49                <p>
50                  Name
51                </p>
52              </th>
53<th>
54                <p>
55                  Description
56                </p>
57              </th>
58</tr></thead>
59<tbody><tr>
60<td>
61                <p>
62                  <a class="link" href="wait_traits/to_wait_duration.html" title="wait_traits::to_wait_duration"><span class="bold"><strong>to_wait_duration</strong></span></a> <span class="silver">[static]</span>
63                </p>
64              </td>
65<td>
66                <p>
67                  Convert a clock duration into a duration used for waiting.
68                </p>
69              </td>
70</tr></tbody>
71</table></div>
72<h5>
73<a name="boost_asio.reference.wait_traits.h1"></a>
74        <span class="phrase"><a name="boost_asio.reference.wait_traits.requirements"></a></span><a class="link" href="wait_traits.html#boost_asio.reference.wait_traits.requirements">Requirements</a>
75      </h5>
76<p>
77        <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/wait_traits.hpp</code>
78      </p>
79<p>
80        <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code>
81      </p>
82</div>
83<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
84<td align="left"></td>
85<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
86      Kohlhoff<p>
87        Distributed under the Boost Software License, Version 1.0. (See accompanying
88        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
89      </p>
90</div></td>
91</tr></table>
92<hr>
93<div class="spirit-nav">
94<a accesskey="p" href="uses_executor.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="wait_traits/to_wait_duration.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
95</div>
96</body>
97</html>
98