impl_2codegen_2completion__queue_8h_source.html 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.11"/>
  7. <title>GRPC C++: include/grpc++/impl/codegen/completion_queue.h Source File</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td id="projectalign" style="padding-left: 0.5em;">
  26. <div id="projectname">GRPC C++
  27. &#160;<span id="projectnumber">1.0.0</span>
  28. </div>
  29. </td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. </div>
  34. <!-- end header part -->
  35. <!-- Generated by Doxygen 1.8.11 -->
  36. <script type="text/javascript">
  37. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  38. </script>
  39. <div id="navrow1" class="tabs">
  40. <ul class="tablist">
  41. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  42. <li><a href="modules.html"><span>Modules</span></a></li>
  43. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  44. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  45. <li class="current"><a href="files.html"><span>Files</span></a></li>
  46. <li>
  47. <div id="MSearchBox" class="MSearchBoxInactive">
  48. <span class="left">
  49. <img id="MSearchSelect" src="search/mag_sel.png"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. alt=""/>
  53. <input type="text" id="MSearchField" value="Search" accesskey="S"
  54. onfocus="searchBox.OnSearchFieldFocus(true)"
  55. onblur="searchBox.OnSearchFieldFocus(false)"
  56. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  57. </span><span class="right">
  58. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  59. </span>
  60. </div>
  61. </li>
  62. </ul>
  63. </div>
  64. <div id="navrow2" class="tabs2">
  65. <ul class="tablist">
  66. <li><a href="files.html"><span>File&#160;List</span></a></li>
  67. <li><a href="globals.html"><span>Globals</span></a></li>
  68. </ul>
  69. </div>
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. </div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div id="nav-path" class="navpath">
  83. <ul>
  84. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_f1b2ab2a88927c1e950e43c1cf4b634b.html">grpc++</a></li><li class="navelem"><a class="el" href="dir_ac8b245a5921095c43c106649fd7bc4b.html">impl</a></li><li class="navelem"><a class="el" href="dir_a7c29f91546e182c0f2b46e2e51819eb.html">codegen</a></li> </ul>
  85. </div>
  86. </div><!-- top -->
  87. <div class="header">
  88. <div class="headertitle">
  89. <div class="title">completion_queue.h</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <a href="impl_2codegen_2completion__queue_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright 2015-2016, Google Inc.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions are</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * met:</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * * Redistributions in binary form must reproduce the above</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * copyright notice, this list of conditions and the following disclaimer</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * in the documentation and/or other materials provided with the</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * distribution.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * * Neither the name of Google Inc. nor the names of its</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * contributors may be used to endorse or promote products derived from</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * this software without specific prior written permission.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> * &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#ifndef GRPCXX_IMPL_CODEGEN_COMPLETION_QUEUE_H</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="preprocessor">#define GRPCXX_IMPL_CODEGEN_COMPLETION_QUEUE_H</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="completion__queue__tag_8h.html">grpc++/impl/codegen/completion_queue_tag.h</a>&gt;</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="core__codegen__interface_8h.html">grpc++/impl/codegen/core_codegen_interface.h</a>&gt;</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="codegen_2grpc__library_8h.html">grpc++/impl/codegen/grpc_library.h</a>&gt;</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpc_09_09_2impl_2codegen_2status_8h.html">grpc++/impl/codegen/status.h</a>&gt;</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpc_09_09_2impl_2codegen_2time_8h.html">grpc++/impl/codegen/time.h</a>&gt;</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpc_2impl_2codegen_2time_8h.html">grpc/impl/codegen/time.h</a>&gt;</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="keyword">struct </span><a class="code" href="grpc__types_8h.html#a895faab0e6035445750e43482651ba2f">grpc_completion_queue</a>;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegrpc.html">grpc</a> {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> R&gt;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="keyword">class </span>ClientReader;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> W&gt;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="keyword">class </span>ClientWriter;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> W, <span class="keyword">class</span> R&gt;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keyword">class </span>ClientReaderWriter;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> R&gt;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classgrpc_1_1_server_reader.html"> 68</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_server_reader.html">ServerReader</a>;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> W&gt;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classgrpc_1_1_server_writer.html"> 70</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_server_writer.html">ServerWriter</a>;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> W, <span class="keyword">class</span> R&gt;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classgrpc_1_1_server_reader_writer.html"> 72</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_server_reader_writer.html">ServerReaderWriter</a>;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> ServiceType, <span class="keyword">class</span> RequestType, <span class="keyword">class</span> ResponseType&gt;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classgrpc_1_1_rpc_method_handler.html"> 74</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_rpc_method_handler.html">RpcMethodHandler</a>;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> ServiceType, <span class="keyword">class</span> RequestType, <span class="keyword">class</span> ResponseType&gt;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classgrpc_1_1_client_streaming_handler.html"> 76</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_client_streaming_handler.html">ClientStreamingHandler</a>;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> ServiceType, <span class="keyword">class</span> RequestType, <span class="keyword">class</span> ResponseType&gt;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classgrpc_1_1_server_streaming_handler.html"> 78</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_server_streaming_handler.html">ServerStreamingHandler</a>;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> ServiceType, <span class="keyword">class</span> RequestType, <span class="keyword">class</span> ResponseType&gt;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classgrpc_1_1_bidi_streaming_handler.html"> 80</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_bidi_streaming_handler.html">BidiStreamingHandler</a>;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_unknown_method_handler.html">UnknownMethodHandler</a>;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_channel.html">Channel</a>;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_channel_interface.html">ChannelInterface</a>;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_client_context.html">ClientContext</a>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_completion_queue_tag.html">CompletionQueueTag</a>;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_completion_queue.html">CompletionQueue</a>;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_rpc_method.html">RpcMethod</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_server.html">Server</a>;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_server_builder.html">ServerBuilder</a>;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_server_context.html">ServerContext</a>;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<span class="keyword">extern</span> <a class="code" href="classgrpc_1_1_core_codegen_interface.html">CoreCodegenInterface</a>* <a class="code" href="namespacegrpc.html#abbcecc18dae64c65df0b6d9aa8bf67a8">g_core_codegen_interface</a>;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html"> 97</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_completion_queue.html">CompletionQueue</a> : <span class="keyword">private</span> <a class="code" href="classgrpc_1_1_grpc_library_codegen.html">GrpcLibraryCodegen</a> {</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#aea987a15a475923e949934e481fe3566"> 101</a></span>&#160; <a class="code" href="classgrpc_1_1_completion_queue.html#aea987a15a475923e949934e481fe3566">CompletionQueue</a>() {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; cq_ = g_core_codegen_interface-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#aa9e90ae9e296515516009948e39fb8cf">grpc_completion_queue_create</a>(<span class="keyword">nullptr</span>);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; }</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classgrpc_1_1_completion_queue.html#aea987a15a475923e949934e481fe3566">CompletionQueue</a>(<a class="code" href="grpc__types_8h.html#a895faab0e6035445750e43482651ba2f">grpc_completion_queue</a>* take);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#aac07e9da5148c779cac51e1bf948c282"> 111</a></span>&#160; <a class="code" href="classgrpc_1_1_completion_queue.html#aac07e9da5148c779cac51e1bf948c282">~CompletionQueue</a>() {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; g_core_codegen_interface-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#a09c4780b55009b806366d7fec6c5b6c5">grpc_completion_queue_destroy</a>(cq_);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572"> 116</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572">NextStatus</a> {</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572a5d05c1c970154dad10e5f648890c215b"> 117</a></span>&#160; <a class="code" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572a5d05c1c970154dad10e5f648890c215b">SHUTDOWN</a>, </div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572a5d8344849fb99341b7edaa9da7b42c08"> 118</a></span>&#160; <a class="code" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572a5d8344849fb99341b7edaa9da7b42c08">GOT_EVENT</a>, </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <a class="code" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572ae88eecb45f91413b425511ee973e2e04">TIMEOUT</a> </div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; };</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a290ddf3d96e6d1d5886580e60b0602b4"> 134</a></span>&#160; <a class="code" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572">NextStatus</a> <a class="code" href="classgrpc_1_1_completion_queue.html#a290ddf3d96e6d1d5886580e60b0602b4">AsyncNext</a>(<span class="keywordtype">void</span>** tag, <span class="keywordtype">bool</span>* ok, <span class="keyword">const</span> T&amp; deadline) {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="classgrpc_1_1_time_point.html">TimePoint&lt;T&gt;</a> deadline_tp(deadline);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keywordflow">return</span> AsyncNextInternal(tag, ok, deadline_tp.<a class="code" href="classgrpc_1_1_time_point.html#adb76465d3bf0fef9ad5b918f0ea6a9b6">raw_time</a>());</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; }</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a86d9810ced694e50f7987ac90b9f8c1a"> 146</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgrpc_1_1_completion_queue.html#a86d9810ced694e50f7987ac90b9f8c1a">Next</a>(<span class="keywordtype">void</span>** tag, <span class="keywordtype">bool</span>* ok) {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordflow">return</span> (AsyncNextInternal(tag, ok, g_core_codegen_interface-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#a6c6b517482387772c954aa2980c5b841">gpr_inf_future</a>(</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <a class="code" href="grpc_2impl_2codegen_2time_8h.html#a2441bd1fbe80e86ff741e0757725b281a685c67eccb0b9e3de6311b1e1330a746">GPR_CLOCK_REALTIME</a>)) != <a class="code" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572a5d05c1c970154dad10e5f648890c215b">SHUTDOWN</a>);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; }</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1_completion_queue.html#a40efddadd9073386fbcb4f46e8325670">Shutdown</a>();</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a999c317e716d1e74aca2eb050912302b"> 165</a></span>&#160; <a class="code" href="grpc__types_8h.html#a895faab0e6035445750e43482651ba2f">grpc_completion_queue</a>* <a class="code" href="classgrpc_1_1_completion_queue.html#a999c317e716d1e74aca2eb050912302b">cq</a>() { <span class="keywordflow">return</span> cq_; }</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="comment">// Friend synchronous wrappers so that they can access Pluck(), which is</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="comment">// a semi-private API geared towards the synchronous implementation.</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> R&gt;</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#ade499098cc91745c1c87147d7a7fb7bf"> 171</a></span>&#160; <span class="keyword">friend</span> class ::grpc::ClientReader;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> W&gt;</div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a4498fada67d531d99a8642f47d746544"> 173</a></span>&#160; <span class="keyword">friend</span> class ::grpc::ClientWriter;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> W, <span class="keyword">class</span> R&gt;</div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a6d5659aa24edba057895be774e2752ec"> 175</a></span>&#160; <span class="keyword">friend</span> class ::grpc::ClientReaderWriter;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> R&gt;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a4f20e2d049342ae00242bbc8021a44bd"> 177</a></span>&#160; <span class="keyword">friend</span> class ::grpc::ServerReader;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> W&gt;</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a2f2dfa831a62c43ad5647a45080488e3"> 179</a></span>&#160; <span class="keyword">friend</span> class ::grpc::ServerWriter;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> W, <span class="keyword">class</span> R&gt;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a8c0a0d64c582a952c8f16d8eac71c677"> 181</a></span>&#160; <span class="keyword">friend</span> class ::grpc::ServerReaderWriter;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> ServiceType, <span class="keyword">class</span> RequestType, <span class="keyword">class</span> ResponseType&gt;</div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a76b9bb18b02084e9eaa8c9b99c668676"> 183</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1_rpc_method_handler.html">RpcMethodHandler</a>;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> ServiceType, <span class="keyword">class</span> RequestType, <span class="keyword">class</span> ResponseType&gt;</div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#ae11583f8aab976055b1feae895d7e12a"> 185</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1_client_streaming_handler.html">ClientStreamingHandler</a>;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> ServiceType, <span class="keyword">class</span> RequestType, <span class="keyword">class</span> ResponseType&gt;</div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#ac2a23a31e1f8f09e2e51f09e7f50ba0c"> 187</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1_server_streaming_handler.html">ServerStreamingHandler</a>;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> ServiceType, <span class="keyword">class</span> RequestType, <span class="keyword">class</span> ResponseType&gt;</div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a9fcf1462b4ea3c6a37e54076aafb93e1"> 189</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1_bidi_streaming_handler.html">BidiStreamingHandler</a>;</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#aeb2b23ecdb6db8b8d7e194a8e0ef5d6f"> 190</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1_unknown_method_handler.html">UnknownMethodHandler</a>;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a8c3fa4c066981aae114e41c3f9340144"> 191</a></span>&#160; <span class="keyword">friend</span> class ::grpc::Server;</div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classgrpc_1_1_completion_queue.html#a6c5b4f4c66d254f341915982a17aac95"> 192</a></span>&#160; <span class="keyword">friend</span> class ::grpc::ServerContext;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> InputMessage, <span class="keyword">class</span> OutputMessage&gt;</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="keyword">friend</span> <a class="code" href="classgrpc_1_1_status.html">Status</a> <a class="code" href="classgrpc_1_1_completion_queue.html#a4aac0a120f3498d1151460ef89ce8446">BlockingUnaryCall</a>(<a class="code" href="classgrpc_1_1_channel_interface.html">ChannelInterface</a>* channel,</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keyword">const</span> <a class="code" href="classgrpc_1_1_rpc_method.html">RpcMethod</a>&amp; method,</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <a class="code" href="classgrpc_1_1_client_context.html">ClientContext</a>* context,</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keyword">const</span> InputMessage&amp; request,</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; OutputMessage* result);</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <a class="code" href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572">NextStatus</a> AsyncNextInternal(<span class="keywordtype">void</span>** tag, <span class="keywordtype">bool</span>* ok, <a class="code" href="structgpr__timespec.html">gpr_timespec</a> deadline);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <span class="keywordtype">bool</span> Pluck(<a class="code" href="classgrpc_1_1_completion_queue_tag.html">CompletionQueueTag</a>* tag) {</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="keyword">auto</span> deadline =</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; g_core_codegen_interface-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#a6c6b517482387772c954aa2980c5b841">gpr_inf_future</a>(<a class="code" href="grpc_2impl_2codegen_2time_8h.html#a2441bd1fbe80e86ff741e0757725b281a685c67eccb0b9e3de6311b1e1330a746">GPR_CLOCK_REALTIME</a>);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <span class="keyword">auto</span> ev = g_core_codegen_interface-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#a4fcba9ee61fc1cc73d0e68022d2b80ad">grpc_completion_queue_pluck</a>(</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; cq_, tag, deadline, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keywordtype">bool</span> ok = ev.<a class="code" href="structgrpc__event.html#a99d4215e5df50869af320b1cca5540db">success</a> != 0;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <span class="keywordtype">void</span>* ignored = tag;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <a class="code" href="core__codegen__interface_8h.html#a39c1421e7081b57c503487659e2653a5">GPR_CODEGEN_ASSERT</a>(tag-&gt;<a class="code" href="classgrpc_1_1_completion_queue_tag.html#af7b1abfcd9e506d118dfdcf29ce7fe8d">FinalizeResult</a>(&amp;ignored, &amp;ok));</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <a class="code" href="core__codegen__interface_8h.html#a39c1421e7081b57c503487659e2653a5">GPR_CODEGEN_ASSERT</a>(ignored == tag);</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="comment">// Ignore mutations by FinalizeResult: Pluck returns the C API status</span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <span class="keywordflow">return</span> ev.success != 0;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; }</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <span class="keywordtype">void</span> TryPluck(<a class="code" href="classgrpc_1_1_completion_queue_tag.html">CompletionQueueTag</a>* tag) {</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keyword">auto</span> deadline = <a class="code" href="grpc_2impl_2codegen_2time_8h.html#a50d869af52fa28c558e7022c2fb9be89">gpr_time_0</a>(<a class="code" href="grpc_2impl_2codegen_2time_8h.html#a2441bd1fbe80e86ff741e0757725b281a685c67eccb0b9e3de6311b1e1330a746">GPR_CLOCK_REALTIME</a>);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keyword">auto</span> ev = g_core_codegen_interface-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#a4fcba9ee61fc1cc73d0e68022d2b80ad">grpc_completion_queue_pluck</a>(</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; cq_, tag, deadline, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="keywordflow">if</span> (ev.type == <a class="code" href="grpc__types_8h.html#ab6454071421a36ebc25952ed448d5b87a4339ea61236e103b6555fdf9b6cffab6">GRPC_QUEUE_TIMEOUT</a>) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keywordtype">bool</span> ok = ev.<a class="code" href="structgrpc__event.html#a99d4215e5df50869af320b1cca5540db">success</a> != 0;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keywordtype">void</span>* ignored = tag;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; <span class="comment">// the tag must be swallowed if using TryPluck</span></div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <a class="code" href="core__codegen__interface_8h.html#a39c1421e7081b57c503487659e2653a5">GPR_CODEGEN_ASSERT</a>(!tag-&gt;<a class="code" href="classgrpc_1_1_completion_queue_tag.html#af7b1abfcd9e506d118dfdcf29ce7fe8d">FinalizeResult</a>(&amp;ignored, &amp;ok));</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; }</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <a class="code" href="grpc__types_8h.html#a895faab0e6035445750e43482651ba2f">grpc_completion_queue</a>* cq_; <span class="comment">// owned</span></div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160;};</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="classgrpc_1_1_server_completion_queue.html"> 235</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_server_completion_queue.html">ServerCompletionQueue</a> : <span class="keyword">public</span> <a class="code" href="classgrpc_1_1_completion_queue.html">CompletionQueue</a> {</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="classgrpc_1_1_server_completion_queue.html#acdb6d4631a3e30737e3903986d69dc52"> 237</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgrpc_1_1_server_completion_queue.html#acdb6d4631a3e30737e3903986d69dc52">IsFrequentlyPolled</a>() { <span class="keywordflow">return</span> is_frequently_polled_; }</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="keywordtype">bool</span> is_frequently_polled_;</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classgrpc_1_1_server_completion_queue.html#a8c2db91f514d534f06396d90c1b1f2c4"> 241</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1_server_builder.html">ServerBuilder</a>;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <a class="code" href="classgrpc_1_1_server_completion_queue.html">ServerCompletionQueue</a>(<span class="keywordtype">bool</span> is_frequently_polled = <span class="keyword">true</span>)</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; : is_frequently_polled_(is_frequently_polled) {}</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160;};</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160;} <span class="comment">// namespace grpc</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;<span class="preprocessor">#endif // GRPCXX_IMPL_CODEGEN_COMPLETION_QUEUE_H</span></div><div class="ttc" id="classgrpc_1_1_completion_queue_tag_html"><div class="ttname"><a href="classgrpc_1_1_completion_queue_tag.html">grpc::CompletionQueueTag</a></div><div class="ttdoc">An interface allowing implementors to process and filter event tags. </div><div class="ttdef"><b>Definition:</b> completion_queue_tag.h:40</div></div>
  93. <div class="ttc" id="classgrpc_1_1_completion_queue_html_a4aac0a120f3498d1151460ef89ce8446"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#a4aac0a120f3498d1151460ef89ce8446">grpc::CompletionQueue::BlockingUnaryCall</a></div><div class="ttdeci">friend Status BlockingUnaryCall(ChannelInterface *channel, const RpcMethod &amp;method, ClientContext *context, const InputMessage &amp;request, OutputMessage *result)</div><div class="ttdef"><b>Definition:</b> client_unary_call.h:52</div></div>
  94. <div class="ttc" id="grpc_09_09_2impl_2codegen_2status_8h_html"><div class="ttname"><a href="grpc_09_09_2impl_2codegen_2status_8h.html">status.h</a></div></div>
  95. <div class="ttc" id="classgrpc_1_1_core_codegen_interface_html_a6c6b517482387772c954aa2980c5b841"><div class="ttname"><a href="classgrpc_1_1_core_codegen_interface.html#a6c6b517482387772c954aa2980c5b841">grpc::CoreCodegenInterface::gpr_inf_future</a></div><div class="ttdeci">virtual gpr_timespec gpr_inf_future(gpr_clock_type type)=0</div></div>
  96. <div class="ttc" id="classgrpc_1_1_completion_queue_tag_html_af7b1abfcd9e506d118dfdcf29ce7fe8d"><div class="ttname"><a href="classgrpc_1_1_completion_queue_tag.html#af7b1abfcd9e506d118dfdcf29ce7fe8d">grpc::CompletionQueueTag::FinalizeResult</a></div><div class="ttdeci">virtual bool FinalizeResult(void **tag, bool *status)=0</div></div>
  97. <div class="ttc" id="core__codegen__interface_8h_html"><div class="ttname"><a href="core__codegen__interface_8h.html">core_codegen_interface.h</a></div></div>
  98. <div class="ttc" id="core__codegen__interface_8h_html_a39c1421e7081b57c503487659e2653a5"><div class="ttname"><a href="core__codegen__interface_8h.html#a39c1421e7081b57c503487659e2653a5">GPR_CODEGEN_ASSERT</a></div><div class="ttdeci">#define GPR_CODEGEN_ASSERT(x)</div><div class="ttdoc">Codegen specific version of GPR_ASSERT. </div><div class="ttdef"><b>Definition:</b> core_codegen_interface.h:97</div></div>
  99. <div class="ttc" id="classgrpc_1_1_completion_queue_html_a6227657fb2f29291f80cd092f9baf572a5d8344849fb99341b7edaa9da7b42c08"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572a5d8344849fb99341b7edaa9da7b42c08">grpc::CompletionQueue::GOT_EVENT</a></div><div class="ttdoc">Got a new event; tag will be filled in with its associated value; ok indicating its success...</div><div class="ttdef"><b>Definition:</b> completion_queue.h:118</div></div>
  100. <div class="ttc" id="grpc__types_8h_html_ab6454071421a36ebc25952ed448d5b87a4339ea61236e103b6555fdf9b6cffab6"><div class="ttname"><a href="grpc__types_8h.html#ab6454071421a36ebc25952ed448d5b87a4339ea61236e103b6555fdf9b6cffab6">GRPC_QUEUE_TIMEOUT</a></div><div class="ttdoc">No event before timeout. </div><div class="ttdef"><b>Definition:</b> grpc_types.h:250</div></div>
  101. <div class="ttc" id="structgrpc__event_html_a99d4215e5df50869af320b1cca5540db"><div class="ttname"><a href="structgrpc__event.html#a99d4215e5df50869af320b1cca5540db">grpc_event::success</a></div><div class="ttdeci">int success</div><div class="ttdoc">non-zero if the operation was successful, 0 upon failure. </div><div class="ttdef"><b>Definition:</b> grpc_types.h:263</div></div>
  102. <div class="ttc" id="classgrpc_1_1_completion_queue_html_a6227657fb2f29291f80cd092f9baf572a5d05c1c970154dad10e5f648890c215b"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572a5d05c1c970154dad10e5f648890c215b">grpc::CompletionQueue::SHUTDOWN</a></div><div class="ttdoc">The completion queue has been shutdown. </div><div class="ttdef"><b>Definition:</b> completion_queue.h:117</div></div>
  103. <div class="ttc" id="grpc_2impl_2codegen_2time_8h_html_a50d869af52fa28c558e7022c2fb9be89"><div class="ttname"><a href="grpc_2impl_2codegen_2time_8h.html#a50d869af52fa28c558e7022c2fb9be89">gpr_time_0</a></div><div class="ttdeci">GPRAPI gpr_timespec gpr_time_0(gpr_clock_type type)</div></div>
  104. <div class="ttc" id="classgrpc_1_1_time_point_html_adb76465d3bf0fef9ad5b918f0ea6a9b6"><div class="ttname"><a href="classgrpc_1_1_time_point.html#adb76465d3bf0fef9ad5b918f0ea6a9b6">grpc::TimePoint::raw_time</a></div><div class="ttdeci">gpr_timespec raw_time()</div><div class="ttdef"><b>Definition:</b> time.h:57</div></div>
  105. <div class="ttc" id="classgrpc_1_1_server_completion_queue_html_acdb6d4631a3e30737e3903986d69dc52"><div class="ttname"><a href="classgrpc_1_1_server_completion_queue.html#acdb6d4631a3e30737e3903986d69dc52">grpc::ServerCompletionQueue::IsFrequentlyPolled</a></div><div class="ttdeci">bool IsFrequentlyPolled()</div><div class="ttdef"><b>Definition:</b> completion_queue.h:237</div></div>
  106. <div class="ttc" id="classgrpc_1_1_core_codegen_interface_html_a09c4780b55009b806366d7fec6c5b6c5"><div class="ttname"><a href="classgrpc_1_1_core_codegen_interface.html#a09c4780b55009b806366d7fec6c5b6c5">grpc::CoreCodegenInterface::grpc_completion_queue_destroy</a></div><div class="ttdeci">virtual void grpc_completion_queue_destroy(grpc_completion_queue *cq)=0</div></div>
  107. <div class="ttc" id="classgrpc_1_1_grpc_library_codegen_html"><div class="ttname"><a href="classgrpc_1_1_grpc_library_codegen.html">grpc::GrpcLibraryCodegen</a></div><div class="ttdoc">Classes that require gRPC to be initialized should inherit from this class. </div><div class="ttdef"><b>Definition:</b> grpc_library.h:53</div></div>
  108. <div class="ttc" id="classgrpc_1_1_time_point_html"><div class="ttname"><a href="classgrpc_1_1_time_point.html">grpc::TimePoint</a></div><div class="ttdef"><b>Definition:</b> time.h:54</div></div>
  109. <div class="ttc" id="classgrpc_1_1_completion_queue_html_a999c317e716d1e74aca2eb050912302b"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#a999c317e716d1e74aca2eb050912302b">grpc::CompletionQueue::cq</a></div><div class="ttdeci">grpc_completion_queue * cq()</div><div class="ttdoc">Returns a raw pointer to the underlying grpc_completion_queue instance. </div><div class="ttdef"><b>Definition:</b> completion_queue.h:165</div></div>
  110. <div class="ttc" id="classgrpc_1_1_client_context_html"><div class="ttname"><a href="classgrpc_1_1_client_context.html">grpc::ClientContext</a></div><div class="ttdef"><b>Definition:</b> client_context.h:154</div></div>
  111. <div class="ttc" id="classgrpc_1_1_server_reader_html"><div class="ttname"><a href="classgrpc_1_1_server_reader.html">grpc::ServerReader</a></div><div class="ttdef"><b>Definition:</b> completion_queue.h:68</div></div>
  112. <div class="ttc" id="completion__queue__tag_8h_html"><div class="ttname"><a href="completion__queue__tag_8h.html">completion_queue_tag.h</a></div></div>
  113. <div class="ttc" id="classgrpc_1_1_completion_queue_html_a86d9810ced694e50f7987ac90b9f8c1a"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#a86d9810ced694e50f7987ac90b9f8c1a">grpc::CompletionQueue::Next</a></div><div class="ttdeci">bool Next(void **tag, bool *ok)</div><div class="ttdoc">Read from the queue, blocking until an event is available or the queue is shutting down...</div><div class="ttdef"><b>Definition:</b> completion_queue.h:146</div></div>
  114. <div class="ttc" id="classgrpc_1_1_unknown_method_handler_html"><div class="ttname"><a href="classgrpc_1_1_unknown_method_handler.html">grpc::UnknownMethodHandler</a></div><div class="ttdef"><b>Definition:</b> method_handler_impl.h:206</div></div>
  115. <div class="ttc" id="codegen_2grpc__library_8h_html"><div class="ttname"><a href="codegen_2grpc__library_8h.html">grpc_library.h</a></div></div>
  116. <div class="ttc" id="grpc_2impl_2codegen_2time_8h_html_a2441bd1fbe80e86ff741e0757725b281a685c67eccb0b9e3de6311b1e1330a746"><div class="ttname"><a href="grpc_2impl_2codegen_2time_8h.html#a2441bd1fbe80e86ff741e0757725b281a685c67eccb0b9e3de6311b1e1330a746">GPR_CLOCK_REALTIME</a></div><div class="ttdef"><b>Definition:</b> time.h:54</div></div>
  117. <div class="ttc" id="classgrpc_1_1_completion_queue_html_a290ddf3d96e6d1d5886580e60b0602b4"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#a290ddf3d96e6d1d5886580e60b0602b4">grpc::CompletionQueue::AsyncNext</a></div><div class="ttdeci">NextStatus AsyncNext(void **tag, bool *ok, const T &amp;deadline)</div><div class="ttdoc">Read from the queue, blocking up to deadline (or the queue&amp;#39;s shutdown). </div><div class="ttdef"><b>Definition:</b> completion_queue.h:134</div></div>
  118. <div class="ttc" id="classgrpc_1_1_completion_queue_html_aac07e9da5148c779cac51e1bf948c282"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#aac07e9da5148c779cac51e1bf948c282">grpc::CompletionQueue::~CompletionQueue</a></div><div class="ttdeci">~CompletionQueue()</div><div class="ttdoc">Destructor. Destroys the owned wrapped completion queue / instance. </div><div class="ttdef"><b>Definition:</b> completion_queue.h:111</div></div>
  119. <div class="ttc" id="classgrpc_1_1_server_html"><div class="ttname"><a href="classgrpc_1_1_server.html">grpc::Server</a></div><div class="ttdoc">Models a gRPC server. </div><div class="ttdef"><b>Definition:</b> server.h:67</div></div>
  120. <div class="ttc" id="classgrpc_1_1_rpc_method_handler_html"><div class="ttname"><a href="classgrpc_1_1_rpc_method_handler.html">grpc::RpcMethodHandler</a></div><div class="ttdef"><b>Definition:</b> completion_queue.h:74</div></div>
  121. <div class="ttc" id="classgrpc_1_1_completion_queue_html_a40efddadd9073386fbcb4f46e8325670"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#a40efddadd9073386fbcb4f46e8325670">grpc::CompletionQueue::Shutdown</a></div><div class="ttdeci">void Shutdown()</div><div class="ttdoc">Request the shutdown of the queue. </div></div>
  122. <div class="ttc" id="namespacegrpc_html"><div class="ttname"><a href="namespacegrpc.html">grpc</a></div><div class="ttdef"><b>Definition:</b> alarm.h:48</div></div>
  123. <div class="ttc" id="classgrpc_1_1_channel_interface_html"><div class="ttname"><a href="classgrpc_1_1_channel_interface.html">grpc::ChannelInterface</a></div><div class="ttdoc">Codegen interface for grpc::Channel. </div><div class="ttdef"><b>Definition:</b> channel_interface.h:64</div></div>
  124. <div class="ttc" id="namespacegrpc_html_abbcecc18dae64c65df0b6d9aa8bf67a8"><div class="ttname"><a href="namespacegrpc.html#abbcecc18dae64c65df0b6d9aa8bf67a8">grpc::g_core_codegen_interface</a></div><div class="ttdeci">CoreCodegenInterface * g_core_codegen_interface</div><div class="ttdef"><b>Definition:</b> call.h:62</div></div>
  125. <div class="ttc" id="classgrpc_1_1_completion_queue_html_a6227657fb2f29291f80cd092f9baf572"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572">grpc::CompletionQueue::NextStatus</a></div><div class="ttdeci">NextStatus</div><div class="ttdoc">Tri-state return for AsyncNext: SHUTDOWN, GOT_EVENT, TIMEOUT. </div><div class="ttdef"><b>Definition:</b> completion_queue.h:116</div></div>
  126. <div class="ttc" id="classgrpc_1_1_completion_queue_html_aea987a15a475923e949934e481fe3566"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#aea987a15a475923e949934e481fe3566">grpc::CompletionQueue::CompletionQueue</a></div><div class="ttdeci">CompletionQueue()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> completion_queue.h:101</div></div>
  127. <div class="ttc" id="classgrpc_1_1_server_context_html"><div class="ttname"><a href="classgrpc_1_1_server_context.html">grpc::ServerContext</a></div><div class="ttdef"><b>Definition:</b> server_context.h:91</div></div>
  128. <div class="ttc" id="classgrpc_1_1_server_writer_html"><div class="ttname"><a href="classgrpc_1_1_server_writer.html">grpc::ServerWriter</a></div><div class="ttdef"><b>Definition:</b> completion_queue.h:70</div></div>
  129. <div class="ttc" id="classgrpc_1_1_completion_queue_html"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html">grpc::CompletionQueue</a></div><div class="ttdoc">A thin wrapper around grpc_completion_queue (see / src/core/surface/completion_queue.h). </div><div class="ttdef"><b>Definition:</b> completion_queue.h:97</div></div>
  130. <div class="ttc" id="classgrpc_1_1_client_streaming_handler_html"><div class="ttname"><a href="classgrpc_1_1_client_streaming_handler.html">grpc::ClientStreamingHandler</a></div><div class="ttdef"><b>Definition:</b> completion_queue.h:76</div></div>
  131. <div class="ttc" id="classgrpc_1_1_rpc_method_html"><div class="ttname"><a href="classgrpc_1_1_rpc_method.html">grpc::RpcMethod</a></div><div class="ttdef"><b>Definition:</b> rpc_method.h:43</div></div>
  132. <div class="ttc" id="grpc_09_09_2impl_2codegen_2time_8h_html"><div class="ttname"><a href="grpc_09_09_2impl_2codegen_2time_8h.html">time.h</a></div></div>
  133. <div class="ttc" id="classgrpc_1_1_server_reader_writer_html"><div class="ttname"><a href="classgrpc_1_1_server_reader_writer.html">grpc::ServerReaderWriter</a></div><div class="ttdoc">Server-side interface for bi-directional streaming. </div><div class="ttdef"><b>Definition:</b> completion_queue.h:72</div></div>
  134. <div class="ttc" id="classgrpc_1_1_core_codegen_interface_html"><div class="ttname"><a href="classgrpc_1_1_core_codegen_interface.html">grpc::CoreCodegenInterface</a></div><div class="ttdoc">Interface between the codegen library and the minimal subset of core features required by the generat...</div><div class="ttdef"><b>Definition:</b> core_codegen_interface.h:50</div></div>
  135. <div class="ttc" id="classgrpc_1_1_server_streaming_handler_html"><div class="ttname"><a href="classgrpc_1_1_server_streaming_handler.html">grpc::ServerStreamingHandler</a></div><div class="ttdef"><b>Definition:</b> completion_queue.h:78</div></div>
  136. <div class="ttc" id="classgrpc_1_1_status_html"><div class="ttname"><a href="classgrpc_1_1_status.html">grpc::Status</a></div><div class="ttdoc">Did it work? If it didn&amp;#39;t, why? </div><div class="ttdef"><b>Definition:</b> status.h:45</div></div>
  137. <div class="ttc" id="structgpr__timespec_html"><div class="ttname"><a href="structgpr__timespec.html">gpr_timespec</a></div><div class="ttdef"><b>Definition:</b> time.h:63</div></div>
  138. <div class="ttc" id="classgrpc_1_1_server_completion_queue_html"><div class="ttname"><a href="classgrpc_1_1_server_completion_queue.html">grpc::ServerCompletionQueue</a></div><div class="ttdoc">A specific type of completion queue used by the processing of notifications by servers. </div><div class="ttdef"><b>Definition:</b> completion_queue.h:235</div></div>
  139. <div class="ttc" id="grpc_2impl_2codegen_2time_8h_html"><div class="ttname"><a href="grpc_2impl_2codegen_2time_8h.html">time.h</a></div></div>
  140. <div class="ttc" id="grpc__types_8h_html_a895faab0e6035445750e43482651ba2f"><div class="ttname"><a href="grpc__types_8h.html#a895faab0e6035445750e43482651ba2f">grpc_completion_queue</a></div><div class="ttdeci">struct grpc_completion_queue grpc_completion_queue</div><div class="ttdoc">Completion Queues enable notification of the completion of asynchronous actions. </div><div class="ttdef"><b>Definition:</b> grpc_types.h:48</div></div>
  141. <div class="ttc" id="classgrpc_1_1_bidi_streaming_handler_html"><div class="ttname"><a href="classgrpc_1_1_bidi_streaming_handler.html">grpc::BidiStreamingHandler</a></div><div class="ttdef"><b>Definition:</b> completion_queue.h:80</div></div>
  142. <div class="ttc" id="classgrpc_1_1_server_builder_html"><div class="ttname"><a href="classgrpc_1_1_server_builder.html">grpc::ServerBuilder</a></div><div class="ttdoc">A builder class for the creation and startup of grpc::Server instances. </div><div class="ttdef"><b>Definition:</b> server_builder.h:61</div></div>
  143. <div class="ttc" id="classgrpc_1_1_completion_queue_html_a6227657fb2f29291f80cd092f9baf572ae88eecb45f91413b425511ee973e2e04"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html#a6227657fb2f29291f80cd092f9baf572ae88eecb45f91413b425511ee973e2e04">grpc::CompletionQueue::TIMEOUT</a></div><div class="ttdoc">deadline was reached. </div><div class="ttdef"><b>Definition:</b> completion_queue.h:120</div></div>
  144. <div class="ttc" id="classgrpc_1_1_core_codegen_interface_html_aa9e90ae9e296515516009948e39fb8cf"><div class="ttname"><a href="classgrpc_1_1_core_codegen_interface.html#aa9e90ae9e296515516009948e39fb8cf">grpc::CoreCodegenInterface::grpc_completion_queue_create</a></div><div class="ttdeci">virtual grpc_completion_queue * grpc_completion_queue_create(void *reserved)=0</div></div>
  145. <div class="ttc" id="classgrpc_1_1_core_codegen_interface_html_a4fcba9ee61fc1cc73d0e68022d2b80ad"><div class="ttname"><a href="classgrpc_1_1_core_codegen_interface.html#a4fcba9ee61fc1cc73d0e68022d2b80ad">grpc::CoreCodegenInterface::grpc_completion_queue_pluck</a></div><div class="ttdeci">virtual grpc_event grpc_completion_queue_pluck(grpc_completion_queue *cq, void *tag, gpr_timespec deadline, void *reserved)=0</div></div>
  146. <div class="ttc" id="classgrpc_1_1_channel_html"><div class="ttname"><a href="classgrpc_1_1_channel.html">grpc::Channel</a></div><div class="ttdoc">Channels represent a connection to an endpoint. Created by CreateChannel. </div><div class="ttdef"><b>Definition:</b> channel.h:49</div></div>
  147. </div><!-- fragment --></div><!-- contents -->
  148. <!-- start footer part -->
  149. <hr class="footer"/><address class="footer"><small>
  150. Generated on Thu Aug 18 2016 21:34:58 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  151. <img class="footer" src="doxygen.png" alt="doxygen"/>
  152. </a> 1.8.11
  153. </small></address>
  154. </body>
  155. </html>