callback__common_8h_source.html 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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.13"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>GRPC C++: include/grpcpp/impl/codegen/callback_common.h Source File</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">GRPC C++
  25. &#160;<span id="projectnumber">1.23.0</span>
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.13 -->
  34. <script type="text/javascript">
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. </script>
  37. <script type="text/javascript" src="menudata.js"></script>
  38. <script type="text/javascript" src="menu.js"></script>
  39. <script type="text/javascript">
  40. $(function() {
  41. initMenu('',true,false,'search.php','Search');
  42. $(document).ready(function() { init_search(); });
  43. });
  44. </script>
  45. <div id="main-nav"></div>
  46. <!-- window showing the filter options -->
  47. <div id="MSearchSelectWindow"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. onkeydown="return searchBox.OnSearchSelectKey(event)">
  51. </div>
  52. <!-- iframe showing the search results (closed by default) -->
  53. <div id="MSearchResultsWindow">
  54. <iframe src="javascript:void(0)" frameborder="0"
  55. name="MSearchResults" id="MSearchResults">
  56. </iframe>
  57. </div>
  58. <div id="nav-path" class="navpath">
  59. <ul>
  60. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_412f9a3d5dfcba8716486cd870ef4586.html">grpcpp</a></li><li class="navelem"><a class="el" href="dir_84040d6f573b73aa8d12512b533ede11.html">impl</a></li><li class="navelem"><a class="el" href="dir_a33e3e3a3b205cffecbb359564791f71.html">codegen</a></li> </ul>
  61. </div>
  62. </div><!-- top -->
  63. <div class="header">
  64. <div class="headertitle">
  65. <div class="title">callback_common.h</div> </div>
  66. </div><!--header-->
  67. <div class="contents">
  68. <a href="callback__common_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 2018 gRPC authors.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef GRPCPP_IMPL_CODEGEN_CALLBACK_COMMON_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define GRPCPP_IMPL_CODEGEN_CALLBACK_COMMON_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpc__types_8h.html">grpc/impl/codegen/grpc_types.h</a>&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2impl_2codegen_2call_8h.html">grpcpp/impl/codegen/call.h</a>&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2impl_2codegen_2channel__interface_8h.html">grpcpp/impl/codegen/channel_interface.h</a>&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2impl_2codegen_2config_8h.html">grpcpp/impl/codegen/config.h</a>&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2impl_2codegen_2core__codegen__interface_8h.html">grpcpp/impl/codegen/core_codegen_interface.h</a>&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2impl_2codegen_2status_8h.html">grpcpp/impl/codegen/status.h</a>&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegrpc.html">grpc</a> {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">namespace </span>internal {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">// TODO(vjpai): decide whether it is better for this to take a const lvalue</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment">// parameter or an rvalue parameter, or if it even matters</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class </span>Func, <span class="keyword">class</span>... Args&gt;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="namespacegrpc_1_1internal.html#a161ad876dc2d4fea93dd8260a7b9b0ae"> 38</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespacegrpc_1_1internal.html#a161ad876dc2d4fea93dd8260a7b9b0ae">CatchingCallback</a>(Func&amp;&amp; func, Args&amp;&amp;... args) {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#if GRPC_ALLOW_EXCEPTIONS</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordflow">try</span> {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; func(std::forward&lt;Args&gt;(args)...);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; } <span class="keywordflow">catch</span> (...) {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="comment">// nothing to return or change here, just don&#39;t crash the library</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor">#else // GRPC_ALLOW_EXCEPTIONS</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; func(std::forward&lt;Args&gt;(args)...);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#endif // GRPC_ALLOW_EXCEPTIONS</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;}</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="keyword">template</span> &lt;<span class="keyword">class </span>ReturnType, <span class="keyword">class </span>Func, <span class="keyword">class</span>... Args&gt;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="namespacegrpc_1_1internal.html#adfbf1d46fb9881710bc60631fae84ea5"> 51</a></span>&#160;ReturnType* <a class="code" href="namespacegrpc_1_1internal.html#adfbf1d46fb9881710bc60631fae84ea5">CatchingReactorCreator</a>(Func&amp;&amp; func, Args&amp;&amp;... args) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="preprocessor">#if GRPC_ALLOW_EXCEPTIONS</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordflow">try</span> {</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordflow">return</span> func(std::forward&lt;Args&gt;(args)...);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; } <span class="keywordflow">catch</span> (...) {</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// fail the RPC, don&#39;t crash the library</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</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="preprocessor">#else // GRPC_ALLOW_EXCEPTIONS</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">return</span> func(std::forward&lt;Args&gt;(args)...);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="preprocessor">#endif // GRPC_ALLOW_EXCEPTIONS</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;}</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="comment">// The contract on these tags is that they are single-shot. They must be</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="comment">// constructed and then fired at exactly one point. There is no expectation</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="comment">// that they can be reused without reconstruction.</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html"> 68</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html">CallbackWithStatusTag</a></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; : <span class="keyword">public</span> <a class="code" href="structgrpc__experimental__completion__queue__functor.html">grpc_experimental_completion_queue_functor</a> {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="comment">// always allocated against a call arena, no memory free required</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#aaeaf101bf32dfd194ebb48ecc648303e"> 72</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <span class="keyword">operator</span> <span class="keyword">delete</span>(<span class="keywordtype">void</span>* ptr, std::size_t size) {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; assert(size == <span class="keyword">sizeof</span>(<a class="code" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html">CallbackWithStatusTag</a>));</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; }</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="comment">// This operator should never be called as the memory should be freed as part</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="comment">// of the arena destruction. It only exists to provide a matching operator</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="comment">// delete to the operator new so that some compilers will not complain (see</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="comment">// https://github.com/grpc/grpc/issues/11301) Note at the time of adding this</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="comment">// there are no tests catching the compiler warning.</span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#a750c17a2c7ee886eac8fca331b8224e1"> 81</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <span class="keyword">operator</span> <span class="keyword">delete</span>(<span class="keywordtype">void</span>*, <span class="keywordtype">void</span>*) { assert(0); }</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"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#a90541e7784fd49209cae06ce464446b1"> 83</a></span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#a90541e7784fd49209cae06ce464446b1">CallbackWithStatusTag</a>(<a class="code" href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a>* call, std::function&lt;<span class="keywordtype">void</span>(<a class="code" href="classgrpc_1_1_status.html">Status</a>)&gt; f,</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_completion_queue_tag.html">CompletionQueueTag</a>* ops)</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; : call_(call), func_(<a class="code" href="namespacestd.html">std</a>::move(f)), ops_(ops) {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="namespacegrpc.html#abbcecc18dae64c65df0b6d9aa8bf67a8">g_core_codegen_interface</a>-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#a715e4e7dfab8362f01a8199489215404">grpc_call_ref</a>(call);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="code" href="structgrpc__experimental__completion__queue__functor.html#a803544c5034a25e2f6de1bc1ee465ff6">functor_run</a> = &amp;CallbackWithStatusTag::StaticRun;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; }</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#a921ddcf3e51f455b40317819e06ddfda"> 89</a></span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#a921ddcf3e51f455b40317819e06ddfda">~CallbackWithStatusTag</a>() {}</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#af1165bb5dcac25fadc2069064760c84b"> 90</a></span>&#160; <a class="code" href="classgrpc_1_1_status.html">Status</a>* <a class="code" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#af1165bb5dcac25fadc2069064760c84b">status_ptr</a>() { <span class="keywordflow">return</span> &amp;status_; }</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="comment">// force_run can not be performed on a tag if operations using this tag</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="comment">// have been sent to PerformOpsOnCall. It is intended for error conditions</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="comment">// that are detected before the operations are internally processed.</span></div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#ae41b52f478d3878c8aadcd26cf9dada6"> 95</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#ae41b52f478d3878c8aadcd26cf9dada6">force_run</a>(<a class="code" href="classgrpc_1_1_status.html">Status</a> s) {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; status_ = std::move(s);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; Run(<span class="keyword">true</span>);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; }</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a>* call_;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; std::function&lt;void(Status)&gt; func_;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_completion_queue_tag.html">CompletionQueueTag</a>* ops_;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="code" href="classgrpc_1_1_status.html">Status</a> status_;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> StaticRun(<a class="code" href="structgrpc__experimental__completion__queue__functor.html">grpc_experimental_completion_queue_functor</a>* cb,</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordtype">int</span> ok) {</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">static_cast&lt;</span><a class="code" href="classgrpc_1_1internal_1_1_callback_with_status_tag.html">CallbackWithStatusTag</a>*<span class="keyword">&gt;</span>(cb)-&gt;Run(static_cast&lt;bool&gt;(ok));</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; }</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordtype">void</span> Run(<span class="keywordtype">bool</span> ok) {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordtype">void</span>* ignored = ops_;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">if</span> (!ops_-&gt;<a class="code" href="classgrpc_1_1internal_1_1_completion_queue_tag.html#a554869ba610e1dca49b86bd6913587ba">FinalizeResult</a>(&amp;ignored, &amp;ok)) {</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="comment">// The tag was swallowed</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; }</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="grpcpp_2impl_2codegen_2core__codegen__interface_8h.html#a39c1421e7081b57c503487659e2653a5">GPR_CODEGEN_ASSERT</a>(ignored == ops_);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="comment">// Last use of func_ or status_, so ok to move them out</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keyword">auto</span> func = std::move(func_);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keyword">auto</span> status = std::move(status_);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; func_ = <span class="keyword">nullptr</span>; <span class="comment">// reset to clear this out for sure</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; status_ = <a class="code" href="namespacegrpc_1_1protobuf_1_1util.html#a717f1a5db6c98d3f27340afd6f28bf7e">Status</a>(); <span class="comment">// reset to clear this out for sure</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <a class="code" href="namespacegrpc_1_1internal.html#a161ad876dc2d4fea93dd8260a7b9b0ae">CatchingCallback</a>(std::move(func), std::move(status));</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <a class="code" href="namespacegrpc.html#abbcecc18dae64c65df0b6d9aa8bf67a8">g_core_codegen_interface</a>-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#a40df30e7435089121f7fa03f76031124">grpc_call_unref</a>(call_);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; }</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;};</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html"> 132</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html">CallbackWithSuccessTag</a></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; : <span class="keyword">public</span> <a class="code" href="structgrpc__experimental__completion__queue__functor.html">grpc_experimental_completion_queue_functor</a> {</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="comment">// always allocated against a call arena, no memory free required</span></div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#a6e03a85c3b208d244139da424a08f3c6"> 136</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <span class="keyword">operator</span> <span class="keyword">delete</span>(<span class="keywordtype">void</span>* ptr, std::size_t size) {</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; assert(size == <span class="keyword">sizeof</span>(<a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html">CallbackWithSuccessTag</a>));</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; }</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="comment">// This operator should never be called as the memory should be freed as part</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="comment">// of the arena destruction. It only exists to provide a matching operator</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="comment">// delete to the operator new so that some compilers will not complain (see</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="comment">// https://github.com/grpc/grpc/issues/11301) Note at the time of adding this</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="comment">// there are no tests catching the compiler warning.</span></div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#a6f0a022dfc8dcffc31c5e64bef207633"> 145</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <span class="keyword">operator</span> <span class="keyword">delete</span>(<span class="keywordtype">void</span>*, <span class="keywordtype">void</span>*) { assert(0); }</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#ad11c7809c2233ce3d2857304357b61f7"> 147</a></span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#ad11c7809c2233ce3d2857304357b61f7">CallbackWithSuccessTag</a>() : call_(nullptr) {}</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#ad259830f898f240faa96e30db7a9e379"> 149</a></span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#ad259830f898f240faa96e30db7a9e379">CallbackWithSuccessTag</a>(<a class="code" href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a>* call, std::function&lt;<span class="keywordtype">void</span>(<span class="keywordtype">bool</span>)&gt; f,</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_completion_queue_tag.html">CompletionQueueTag</a>* ops) {</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; Set(call, f, ops);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; }</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html">CallbackWithSuccessTag</a>(<span class="keyword">const</span> <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html">CallbackWithSuccessTag</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html">CallbackWithSuccessTag</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html">CallbackWithSuccessTag</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#a91f38a7b44d1ad4af5610d71a79e9941"> 157</a></span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#a91f38a7b44d1ad4af5610d71a79e9941">~CallbackWithSuccessTag</a>() { Clear(); }</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="comment">// Set can only be called on a default-constructed or Clear&#39;ed tag.</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="comment">// It should never be called on a tag that was constructed with arguments</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="comment">// or on a tag that has been Set before unless the tag has been cleared.</span></div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#abd94589fea063e1e8f04d34c2f4ad5cb"> 162</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#abd94589fea063e1e8f04d34c2f4ad5cb">Set</a>(<a class="code" href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a>* call, std::function&lt;<span class="keywordtype">void</span>(<span class="keywordtype">bool</span>)&gt; f,</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_completion_queue_tag.html">CompletionQueueTag</a>* ops) {</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <a class="code" href="grpcpp_2impl_2codegen_2core__codegen__interface_8h.html#a39c1421e7081b57c503487659e2653a5">GPR_CODEGEN_ASSERT</a>(call_ == <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="code" href="namespacegrpc.html#abbcecc18dae64c65df0b6d9aa8bf67a8">g_core_codegen_interface</a>-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#a715e4e7dfab8362f01a8199489215404">grpc_call_ref</a>(call);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; call_ = call;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; func_ = std::move(f);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; ops_ = ops;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <a class="code" href="structgrpc__experimental__completion__queue__functor.html#a803544c5034a25e2f6de1bc1ee465ff6">functor_run</a> = &amp;CallbackWithSuccessTag::StaticRun;</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; }</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#aebb25acded8189702314574955e64e40"> 172</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#aebb25acded8189702314574955e64e40">Clear</a>() {</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordflow">if</span> (call_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <a class="code" href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a>* call = call_;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; call_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; func_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <a class="code" href="namespacegrpc.html#abbcecc18dae64c65df0b6d9aa8bf67a8">g_core_codegen_interface</a>-&gt;<a class="code" href="classgrpc_1_1_core_codegen_interface.html#a40df30e7435089121f7fa03f76031124">grpc_call_unref</a>(call);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; }</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; }</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#af53c6bf4bf22da20e5d4ccf1ec44a5ea"> 181</a></span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_completion_queue_tag.html">CompletionQueueTag</a>* <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#af53c6bf4bf22da20e5d4ccf1ec44a5ea">ops</a>() { <span class="keywordflow">return</span> ops_; }</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="comment">// force_run can not be performed on a tag if operations using this tag</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="comment">// have been sent to PerformOpsOnCall. It is intended for error conditions</span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="comment">// that are detected before the operations are internally processed.</span></div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#a90a90b04c0f79faeae7d00a55cc6f9c5"> 186</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#a90a90b04c0f79faeae7d00a55cc6f9c5">force_run</a>(<span class="keywordtype">bool</span> ok) { Run(ok); }</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#a386cc9105b2d87a3aea7d46904654989"> 189</a></span>&#160; <span class="keyword">operator</span> bool()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> call_ != <span class="keyword">nullptr</span>; }</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <a class="code" href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a>* call_;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; std::function&lt;void(bool)&gt; func_;</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_completion_queue_tag.html">CompletionQueueTag</a>* ops_;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> StaticRun(<a class="code" href="structgrpc__experimental__completion__queue__functor.html">grpc_experimental_completion_queue_functor</a>* cb,</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keywordtype">int</span> ok) {</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keyword">static_cast&lt;</span><a class="code" href="classgrpc_1_1internal_1_1_callback_with_success_tag.html">CallbackWithSuccessTag</a>*<span class="keyword">&gt;</span>(cb)-&gt;Run(static_cast&lt;bool&gt;(ok));</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; <span class="keywordtype">void</span> Run(<span class="keywordtype">bool</span> ok) {</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keywordtype">void</span>* ignored = ops_;</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="comment">// Allow a &quot;false&quot; return value from FinalizeResult to silence the</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="comment">// callback, just as it silences a CQ tag in the async cases</span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;<span class="preprocessor">#ifndef NDEBUG</span></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="keyword">auto</span>* ops = ops_;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <span class="keywordtype">bool</span> do_callback = ops_-&gt;<a class="code" href="classgrpc_1_1internal_1_1_completion_queue_tag.html#a554869ba610e1dca49b86bd6913587ba">FinalizeResult</a>(&amp;ignored, &amp;ok);</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <a class="code" href="grpcpp_2impl_2codegen_2core__codegen__interface_8h.html#a6fb226b396826c0da32ee421603c9c1e">GPR_CODEGEN_DEBUG_ASSERT</a>(ignored == ops);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <span class="keywordflow">if</span> (do_callback) {</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <a class="code" href="namespacegrpc_1_1internal.html#a161ad876dc2d4fea93dd8260a7b9b0ae">CatchingCallback</a>(func_, ok);</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; }</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; }</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;};</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;} <span class="comment">// namespace internal</span></div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;} <span class="comment">// namespace grpc</span></div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;<span class="preprocessor">#endif // GRPCPP_IMPL_CODEGEN_CALLBACK_COMMON_H</span></div><div class="ttc" id="grpcpp_2impl_2codegen_2config_8h_html"><div class="ttname"><a href="grpcpp_2impl_2codegen_2config_8h.html">config.h</a></div></div>
  69. <div class="ttc" id="grpc__types_8h_html_a122f8f4f0a585396d993d9b55848f222"><div class="ttname"><a href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a></div><div class="ttdeci">struct grpc_call grpc_call</div><div class="ttdoc">A Call represents an RPC. </div><div class="ttdef"><b>Definition:</b> grpc_types.h:70</div></div>
  70. <div class="ttc" id="grpcpp_2impl_2codegen_2core__codegen__interface_8h_html_a39c1421e7081b57c503487659e2653a5"><div class="ttname"><a href="grpcpp_2impl_2codegen_2core__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:145</div></div>
  71. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_success_tag_html_a90a90b04c0f79faeae7d00a55cc6f9c5"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#a90a90b04c0f79faeae7d00a55cc6f9c5">grpc::internal::CallbackWithSuccessTag::force_run</a></div><div class="ttdeci">void force_run(bool ok)</div><div class="ttdef"><b>Definition:</b> callback_common.h:186</div></div>
  72. <div class="ttc" id="classgrpc_1_1_core_codegen_interface_html_a715e4e7dfab8362f01a8199489215404"><div class="ttname"><a href="classgrpc_1_1_core_codegen_interface.html#a715e4e7dfab8362f01a8199489215404">grpc::CoreCodegenInterface::grpc_call_ref</a></div><div class="ttdeci">virtual void grpc_call_ref(grpc_call *call)=0</div></div>
  73. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_success_tag_html_ad259830f898f240faa96e30db7a9e379"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#ad259830f898f240faa96e30db7a9e379">grpc::internal::CallbackWithSuccessTag::CallbackWithSuccessTag</a></div><div class="ttdeci">CallbackWithSuccessTag(grpc_call *call, std::function&lt; void(bool)&gt; f, CompletionQueueTag *ops)</div><div class="ttdef"><b>Definition:</b> callback_common.h:149</div></div>
  74. <div class="ttc" id="classgrpc_1_1internal_1_1_completion_queue_tag_html"><div class="ttname"><a href="classgrpc_1_1internal_1_1_completion_queue_tag.html">grpc::internal::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:26</div></div>
  75. <div class="ttc" id="classgrpc_1_1internal_1_1_completion_queue_tag_html_a554869ba610e1dca49b86bd6913587ba"><div class="ttname"><a href="classgrpc_1_1internal_1_1_completion_queue_tag.html#a554869ba610e1dca49b86bd6913587ba">grpc::internal::CompletionQueueTag::FinalizeResult</a></div><div class="ttdeci">virtual bool FinalizeResult(void **tag, bool *status)=0</div><div class="ttdoc">FinalizeResult must be called before informing user code that the operation bound to the underlying c...</div></div>
  76. <div class="ttc" id="classgrpc_1_1_core_codegen_interface_html_a40df30e7435089121f7fa03f76031124"><div class="ttname"><a href="classgrpc_1_1_core_codegen_interface.html#a40df30e7435089121f7fa03f76031124">grpc::CoreCodegenInterface::grpc_call_unref</a></div><div class="ttdeci">virtual void grpc_call_unref(grpc_call *call)=0</div></div>
  77. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_success_tag_html_af53c6bf4bf22da20e5d4ccf1ec44a5ea"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#af53c6bf4bf22da20e5d4ccf1ec44a5ea">grpc::internal::CallbackWithSuccessTag::ops</a></div><div class="ttdeci">CompletionQueueTag * ops()</div><div class="ttdef"><b>Definition:</b> callback_common.h:181</div></div>
  78. <div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> async_unary_call_impl.h:302</div></div>
  79. <div class="ttc" id="grpc__types_8h_html"><div class="ttname"><a href="grpc__types_8h.html">grpc_types.h</a></div></div>
  80. <div class="ttc" id="namespacegrpc_1_1protobuf_1_1util_html_a717f1a5db6c98d3f27340afd6f28bf7e"><div class="ttname"><a href="namespacegrpc_1_1protobuf_1_1util.html#a717f1a5db6c98d3f27340afd6f28bf7e">grpc::protobuf::util::Status</a></div><div class="ttdeci">::google::protobuf::util::Status Status</div><div class="ttdef"><b>Definition:</b> config_protobuf.h:96</div></div>
  81. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_success_tag_html_abd94589fea063e1e8f04d34c2f4ad5cb"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#abd94589fea063e1e8f04d34c2f4ad5cb">grpc::internal::CallbackWithSuccessTag::Set</a></div><div class="ttdeci">void Set(grpc_call *call, std::function&lt; void(bool)&gt; f, CompletionQueueTag *ops)</div><div class="ttdef"><b>Definition:</b> callback_common.h:162</div></div>
  82. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_success_tag_html_a91f38a7b44d1ad4af5610d71a79e9941"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#a91f38a7b44d1ad4af5610d71a79e9941">grpc::internal::CallbackWithSuccessTag::~CallbackWithSuccessTag</a></div><div class="ttdeci">~CallbackWithSuccessTag()</div><div class="ttdef"><b>Definition:</b> callback_common.h:157</div></div>
  83. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_status_tag_html_a90541e7784fd49209cae06ce464446b1"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#a90541e7784fd49209cae06ce464446b1">grpc::internal::CallbackWithStatusTag::CallbackWithStatusTag</a></div><div class="ttdeci">CallbackWithStatusTag(grpc_call *call, std::function&lt; void(Status)&gt; f, CompletionQueueTag *ops)</div><div class="ttdef"><b>Definition:</b> callback_common.h:83</div></div>
  84. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_status_tag_html_af1165bb5dcac25fadc2069064760c84b"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#af1165bb5dcac25fadc2069064760c84b">grpc::internal::CallbackWithStatusTag::status_ptr</a></div><div class="ttdeci">Status * status_ptr()</div><div class="ttdef"><b>Definition:</b> callback_common.h:90</div></div>
  85. <div class="ttc" id="namespacegrpc_html"><div class="ttname"><a href="namespacegrpc.html">grpc</a></div><div class="ttdoc">This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...</div><div class="ttdef"><b>Definition:</b> alarm.h:24</div></div>
  86. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_status_tag_html_ae41b52f478d3878c8aadcd26cf9dada6"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#ae41b52f478d3878c8aadcd26cf9dada6">grpc::internal::CallbackWithStatusTag::force_run</a></div><div class="ttdeci">void force_run(Status s)</div><div class="ttdef"><b>Definition:</b> callback_common.h:95</div></div>
  87. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_status_tag_html_a921ddcf3e51f455b40317819e06ddfda"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_status_tag.html#a921ddcf3e51f455b40317819e06ddfda">grpc::internal::CallbackWithStatusTag::~CallbackWithStatusTag</a></div><div class="ttdeci">~CallbackWithStatusTag()</div><div class="ttdef"><b>Definition:</b> callback_common.h:89</div></div>
  88. <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> completion_queue_impl.h:91</div></div>
  89. <div class="ttc" id="namespacegrpc_1_1internal_html_adfbf1d46fb9881710bc60631fae84ea5"><div class="ttname"><a href="namespacegrpc_1_1internal.html#adfbf1d46fb9881710bc60631fae84ea5">grpc::internal::CatchingReactorCreator</a></div><div class="ttdeci">ReturnType * CatchingReactorCreator(Func &amp;&amp;func, Args &amp;&amp;... args)</div><div class="ttdef"><b>Definition:</b> callback_common.h:51</div></div>
  90. <div class="ttc" id="grpcpp_2impl_2codegen_2channel__interface_8h_html"><div class="ttname"><a href="grpcpp_2impl_2codegen_2channel__interface_8h.html">channel_interface.h</a></div></div>
  91. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_success_tag_html"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_success_tag.html">grpc::internal::CallbackWithSuccessTag</a></div><div class="ttdoc">CallbackWithSuccessTag can be reused multiple times, and will be used in this fashion for streaming o...</div><div class="ttdef"><b>Definition:</b> callback_common.h:132</div></div>
  92. <div class="ttc" id="grpcpp_2impl_2codegen_2core__codegen__interface_8h_html"><div class="ttname"><a href="grpcpp_2impl_2codegen_2core__codegen__interface_8h.html">core_codegen_interface.h</a></div></div>
  93. <div class="ttc" id="grpcpp_2impl_2codegen_2status_8h_html"><div class="ttname"><a href="grpcpp_2impl_2codegen_2status_8h.html">status.h</a></div></div>
  94. <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:31</div></div>
  95. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_success_tag_html_aebb25acded8189702314574955e64e40"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#aebb25acded8189702314574955e64e40">grpc::internal::CallbackWithSuccessTag::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdef"><b>Definition:</b> callback_common.h:172</div></div>
  96. <div class="ttc" id="namespacegrpc_1_1internal_html_a161ad876dc2d4fea93dd8260a7b9b0ae"><div class="ttname"><a href="namespacegrpc_1_1internal.html#a161ad876dc2d4fea93dd8260a7b9b0ae">grpc::internal::CatchingCallback</a></div><div class="ttdeci">void CatchingCallback(Func &amp;&amp;func, Args &amp;&amp;... args)</div><div class="ttdoc">An exception-safe way of invoking a user-specified callback function. </div><div class="ttdef"><b>Definition:</b> callback_common.h:38</div></div>
  97. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_status_tag_html"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_status_tag.html">grpc::internal::CallbackWithStatusTag</a></div><div class="ttdef"><b>Definition:</b> callback_common.h:68</div></div>
  98. <div class="ttc" id="structgrpc__experimental__completion__queue__functor_html_a803544c5034a25e2f6de1bc1ee465ff6"><div class="ttname"><a href="structgrpc__experimental__completion__queue__functor.html#a803544c5034a25e2f6de1bc1ee465ff6">grpc_experimental_completion_queue_functor::functor_run</a></div><div class="ttdeci">void(* functor_run)(struct grpc_experimental_completion_queue_functor *, int)</div><div class="ttdoc">The run member specifies a function that will be called when this tag is extracted from the completio...</div><div class="ttdef"><b>Definition:</b> grpc_types.h:711</div></div>
  99. <div class="ttc" id="grpcpp_2impl_2codegen_2call_8h_html"><div class="ttname"><a href="grpcpp_2impl_2codegen_2call_8h.html">call.h</a></div></div>
  100. <div class="ttc" id="structgrpc__experimental__completion__queue__functor_html"><div class="ttname"><a href="structgrpc__experimental__completion__queue__functor.html">grpc_experimental_completion_queue_functor</a></div><div class="ttdoc">EXPERIMENTAL: Specifies an interface class to be used as a tag for callback-based completion queues...</div><div class="ttdef"><b>Definition:</b> grpc_types.h:706</div></div>
  101. <div class="ttc" id="grpcpp_2impl_2codegen_2core__codegen__interface_8h_html_a6fb226b396826c0da32ee421603c9c1e"><div class="ttname"><a href="grpcpp_2impl_2codegen_2core__codegen__interface_8h.html#a6fb226b396826c0da32ee421603c9c1e">GPR_CODEGEN_DEBUG_ASSERT</a></div><div class="ttdeci">#define GPR_CODEGEN_DEBUG_ASSERT(x)</div><div class="ttdoc">Codegen specific version of GPR_DEBUG_ASSERT. </div><div class="ttdef"><b>Definition:</b> core_codegen_interface.h:154</div></div>
  102. <div class="ttc" id="classgrpc_1_1internal_1_1_callback_with_success_tag_html_ad11c7809c2233ce3d2857304357b61f7"><div class="ttname"><a href="classgrpc_1_1internal_1_1_callback_with_success_tag.html#ad11c7809c2233ce3d2857304357b61f7">grpc::internal::CallbackWithSuccessTag::CallbackWithSuccessTag</a></div><div class="ttdeci">CallbackWithSuccessTag()</div><div class="ttdef"><b>Definition:</b> callback_common.h:147</div></div>
  103. </div><!-- fragment --></div><!-- contents -->
  104. <!-- start footer part -->
  105. <hr class="footer"/><address class="footer"><small>
  106. Generated on Mon Aug 19 2019 12:05:23 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  107. <img class="footer" src="doxygen.png" alt="doxygen"/>
  108. </a> 1.8.13
  109. </small></address>
  110. </body>
  111. </html>