WaitTraits.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>Wait traits requirements</title>
  5. <link rel="stylesheet" href="../../boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
  7. <link rel="home" href="../../index.html" title="Asio">
  8. <link rel="up" href="../reference.html" title="Reference">
  9. <link rel="prev" href="WaitHandler.html" title="Wait handler requirements">
  10. <link rel="next" href="WriteHandler.html" title="Write handler requirements">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../asio.png"></td></tr></table>
  14. <hr>
  15. <div class="spirit-nav">
  16. <a accesskey="p" href="WaitHandler.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="WriteHandler.html"><img src="../../next.png" alt="Next"></a>
  17. </div>
  18. <div class="section">
  19. <div class="titlepage"><div><div><h3 class="title">
  20. <a name="asio.reference.WaitTraits"></a><a class="link" href="WaitTraits.html" title="Wait traits requirements">Wait traits requirements</a>
  21. </h3></div></div></div>
  22. <p>
  23. In the table below, <code class="computeroutput"><span class="identifier">X</span></code> denotes
  24. a wait traits class for clock type <code class="computeroutput"><span class="identifier">Clock</span></code>,
  25. where <code class="computeroutput"><span class="identifier">Clock</span></code> meets the C++11
  26. type requirements for a clock, and <code class="computeroutput"><span class="identifier">d</span></code>
  27. denotes a value of type <code class="computeroutput"><span class="identifier">Clock</span><span class="special">::</span><span class="identifier">duration</span></code>.
  28. </p>
  29. <div class="table">
  30. <a name="asio.reference.WaitTraits.t0"></a><p class="title"><b>Table&#160;41.&#160;WaitTraits requirements</b></p>
  31. <div class="table-contents"><table class="table" summary="WaitTraits requirements">
  32. <colgroup>
  33. <col>
  34. <col>
  35. <col>
  36. </colgroup>
  37. <thead><tr>
  38. <th>
  39. <p>
  40. expression
  41. </p>
  42. </th>
  43. <th>
  44. <p>
  45. return type
  46. </p>
  47. </th>
  48. <th>
  49. <p>
  50. assertion/note<br> pre/post-condition
  51. </p>
  52. </th>
  53. </tr></thead>
  54. <tbody><tr>
  55. <td>
  56. <p>
  57. <code class="computeroutput"><span class="identifier">X</span><span class="special">::</span><span class="identifier">to_wait_duration</span><span class="special">(</span><span class="identifier">d</span><span class="special">);</span></code>
  58. </p>
  59. </td>
  60. <td>
  61. <p>
  62. <code class="computeroutput"><span class="identifier">Clock</span><span class="special">::</span><span class="identifier">duration</span></code>
  63. </p>
  64. </td>
  65. <td>
  66. <p>
  67. Returns the maximum duration to be used for an individual, implementation-defined
  68. wait operation.
  69. </p>
  70. </td>
  71. </tr></tbody>
  72. </table></div>
  73. </div>
  74. <br class="table-break">
  75. </div>
  76. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  77. <td align="left"></td>
  78. <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2014 Christopher M. Kohlhoff<p>
  79. Distributed under the Boost Software License, Version 1.0. (See accompanying
  80. 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>)
  81. </p>
  82. </div></td>
  83. </tr></table>
  84. <hr>
  85. <div class="spirit-nav">
  86. <a accesskey="p" href="WaitHandler.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="WriteHandler.html"><img src="../../next.png" alt="Next"></a>
  87. </div>
  88. </body>
  89. </html>