| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.11"/>
- <title>GRPC C++: include/grpc++/impl/codegen/sync_no_cxx11.h Source File</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { init_search(); });
- </script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">GRPC C++
-  <span id="projectnumber">1.0.0</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.11 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="modules.html"><span>Modules</span></a></li>
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
- <li><a href="annotated.html"><span>Data Structures</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- <div id="navrow2" class="tabs2">
- <ul class="tablist">
- <li><a href="files.html"><span>File List</span></a></li>
- <li><a href="globals.html"><span>Globals</span></a></li>
- </ul>
- </div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div id="nav-path" class="navpath">
- <ul>
- <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>
- </div>
- </div><!-- top -->
- <div class="header">
- <div class="headertitle">
- <div class="title">sync_no_cxx11.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <a href="codegen_2sync__no__cxx11_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> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright 2015, Google Inc.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <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> <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> <span class="comment"> * met:</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <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> <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> <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> <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> <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> <span class="comment"> * distribution.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <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> <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> <span class="comment"> * this software without specific prior written permission.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> *</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <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> <span class="comment"> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <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> <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> <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> <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> <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> <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> <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> <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> <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> <span class="comment"> *</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> */</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#ifndef GRPCXX_IMPL_CODEGEN_SYNC_NO_CXX11_H</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#define GRPCXX_IMPL_CODEGEN_SYNC_NO_CXX11_H</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include <<a class="code" href="grpc_2impl_2codegen_2sync_8h.html">grpc/impl/codegen/sync.h</a>></span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">namespace </span><a class="code" href="namespacegrpc.html">grpc</a> {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">template</span> <<span class="keyword">class</span> mutex></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classgrpc_1_1lock__guard.html"> 42</a></span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1lock__guard.html">lock_guard</a>;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1condition__variable.html">condition_variable</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classgrpc_1_1mutex.html"> 45</a></span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1mutex.html">mutex</a> {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classgrpc_1_1mutex.html#ae012e9f1c5cafd9d6f77a9a81d641581"> 47</a></span>  <a class="code" href="classgrpc_1_1mutex.html#ae012e9f1c5cafd9d6f77a9a81d641581">mutex</a>() { <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#a989fb0f141d90a05b20425ebdc77936d">gpr_mu_init</a>(&mu_); }</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classgrpc_1_1mutex.html#a318a9bdff2281779aaea87344d6a3e5a"> 48</a></span>  <a class="code" href="classgrpc_1_1mutex.html#a318a9bdff2281779aaea87344d6a3e5a">~mutex</a>() { <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#a23567fcb3d8a7d5f29834ddbcbbe1d1d">gpr_mu_destroy</a>(&mu_); }</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="structgpr__mu.html">::gpr_mu</a> mu_;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">template</span> <<span class="keyword">class</span> mutex></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classgrpc_1_1mutex.html#a4cfa68eb2ccf47f11c725b6773ff9a5b"> 53</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1lock__guard.html">lock_guard</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classgrpc_1_1mutex.html#a89c9b6aa2256fa5efd92a333d96381d4"> 54</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1condition__variable.html">condition_variable</a>;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> };</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">template</span> <<span class="keyword">class</span> mutex></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1lock__guard.html">lock_guard</a> {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classgrpc_1_1lock__guard.html#ad5556ef1ebffe0cf983871fbc61fe264"> 60</a></span>  <a class="code" href="classgrpc_1_1lock__guard.html#ad5556ef1ebffe0cf983871fbc61fe264">lock_guard</a>(<a class="code" href="classgrpc_1_1mutex.html">mutex</a> &mu) : mu_(mu), locked(true) { <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#a7001a8164ce893911acf26d2fb8fd2ba">gpr_mu_lock</a>(&mu.mu_); }</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classgrpc_1_1lock__guard.html#ac99f7ed1e7b1e177a20b23f230eaf1c2"> 61</a></span>  <a class="code" href="classgrpc_1_1lock__guard.html#ac99f7ed1e7b1e177a20b23f230eaf1c2">~lock_guard</a>() { unlock_internal(); }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classgrpc_1_1lock__guard.html#ac6236e52082bd62d20f17de1625fd649"> 64</a></span>  <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1lock__guard.html#ac6236e52082bd62d20f17de1625fd649">lock_internal</a>() {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">if</span> (!locked) <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#a7001a8164ce893911acf26d2fb8fd2ba">gpr_mu_lock</a>(&mu_.mu_);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  locked = <span class="keyword">true</span>;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classgrpc_1_1lock__guard.html#a84bc9261c3b0c0bb3824265c31ce26c5"> 68</a></span>  <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1lock__guard.html#a84bc9261c3b0c0bb3824265c31ce26c5">unlock_internal</a>() {</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">if</span> (locked) <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#af0e6cc39401a0ee35b728f5b88135376">gpr_mu_unlock</a>(&mu_.mu_);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  locked = <span class="keyword">false</span>;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  }</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classgrpc_1_1mutex.html">mutex</a> &mu_;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordtype">bool</span> locked;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classgrpc_1_1lock__guard.html#a89c9b6aa2256fa5efd92a333d96381d4"> 76</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1condition__variable.html">condition_variable</a>;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> };</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">template</span> <<span class="keyword">class</span> mutex></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classgrpc_1_1unique__lock.html"> 80</a></span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1unique__lock.html">unique_lock</a> : <span class="keyword">public</span> <a class="code" href="classgrpc_1_1lock__guard.html">lock_guard</a><mutex> {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classgrpc_1_1unique__lock.html#ad82b43eea850ccccf7a1682668c3a633"> 82</a></span>  <a class="code" href="classgrpc_1_1unique__lock.html#ad82b43eea850ccccf7a1682668c3a633">unique_lock</a>(<a class="code" href="classgrpc_1_1mutex.html">mutex</a> &mu) : <a class="code" href="classgrpc_1_1lock__guard.html">lock_guard</a><<a class="code" href="classgrpc_1_1mutex.html">mutex</a>>(mu) {}</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classgrpc_1_1unique__lock.html#ae29c07f1bdca4a39516f3841dac5cb54"> 83</a></span>  <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1unique__lock.html#ae29c07f1bdca4a39516f3841dac5cb54">lock</a>() { this->lock_internal(); }</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classgrpc_1_1unique__lock.html#af631f112239d5fb5aeff2ed1335e7ccd"> 84</a></span>  <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1unique__lock.html#af631f112239d5fb5aeff2ed1335e7ccd">unlock</a>() { this->unlock_internal(); }</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> };</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classgrpc_1_1condition__variable.html"> 87</a></span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1condition__variable.html">condition_variable</a> {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classgrpc_1_1condition__variable.html#ac254c7b505f7b6e3c5c244f971aef611"> 89</a></span>  <a class="code" href="classgrpc_1_1condition__variable.html#ac254c7b505f7b6e3c5c244f971aef611">condition_variable</a>() { <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#a112715bd2e69d92010a6317c839eb36f">gpr_cv_init</a>(&cv_); }</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classgrpc_1_1condition__variable.html#ab96cbd3448680ce017794565847181ca"> 90</a></span>  <a class="code" href="classgrpc_1_1condition__variable.html#ab96cbd3448680ce017794565847181ca">~condition_variable</a>() { <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#a053788a2217043c527afc8b424568b22">gpr_cv_destroy</a>(&cv_); }</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classgrpc_1_1condition__variable.html#a58cced6338389e99d7e663ba0ab5aed8"> 91</a></span>  <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1condition__variable.html#a58cced6338389e99d7e663ba0ab5aed8">wait</a>(<a class="code" href="classgrpc_1_1lock__guard.html">lock_guard<mutex></a> &mu) {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  mu.locked = <span class="keyword">false</span>;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#adf647f6e8dede8b27ccda9e971ae4971">gpr_cv_wait</a>(&cv_, &mu.mu_.mu_, <a class="code" href="grpc_2impl_2codegen_2time_8h.html#a57c9693ef253d0951363c5dafb6586df">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="l00094"></a><span class="lineno"> 94</span>  mu.locked = <span class="keyword">true</span>;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classgrpc_1_1condition__variable.html#abc49965bc36f319781bb315fff7d9fb3"> 96</a></span>  <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1condition__variable.html#abc49965bc36f319781bb315fff7d9fb3">notify_one</a>() { <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#abf066e257012246303a938350d1546a0">gpr_cv_signal</a>(&cv_); }</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classgrpc_1_1condition__variable.html#a09a9b8a854f939962c6080bd2764dd36"> 97</a></span>  <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1condition__variable.html#a09a9b8a854f939962c6080bd2764dd36">notify_all</a>() { <a class="code" href="grpc_2impl_2codegen_2sync_8h.html#a684cb215f9f840791372180a810b405d">gpr_cv_broadcast</a>(&cv_); }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="sync__posix_8h.html#a1ad613e07180c0459cda9f3f6d881885">gpr_cv</a> cv_;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> };</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> } <span class="comment">// namespace grpc</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="preprocessor">#endif // GRPCXX_IMPL_CODEGEN_SYNC_NO_CXX11_H</span></div><div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html_adf647f6e8dede8b27ccda9e971ae4971"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html#adf647f6e8dede8b27ccda9e971ae4971">gpr_cv_wait</a></div><div class="ttdeci">GPRAPI int gpr_cv_wait(gpr_cv *cv, gpr_mu *mu, gpr_timespec abs_deadline)</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html_abf066e257012246303a938350d1546a0"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html#abf066e257012246303a938350d1546a0">gpr_cv_signal</a></div><div class="ttdeci">GPRAPI void gpr_cv_signal(gpr_cv *cv)</div></div>
- <div class="ttc" id="classgrpc_1_1mutex_html"><div class="ttname"><a href="classgrpc_1_1mutex.html">grpc::mutex</a></div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:45</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html_a112715bd2e69d92010a6317c839eb36f"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html#a112715bd2e69d92010a6317c839eb36f">gpr_cv_init</a></div><div class="ttdeci">GPRAPI void gpr_cv_init(gpr_cv *cv)</div></div>
- <div class="ttc" id="classgrpc_1_1lock__guard_html_a84bc9261c3b0c0bb3824265c31ce26c5"><div class="ttname"><a href="classgrpc_1_1lock__guard.html#a84bc9261c3b0c0bb3824265c31ce26c5">grpc::lock_guard::unlock_internal</a></div><div class="ttdeci">void unlock_internal()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:68</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html">sync.h</a></div></div>
- <div class="ttc" id="classgrpc_1_1lock__guard_html_ac6236e52082bd62d20f17de1625fd649"><div class="ttname"><a href="classgrpc_1_1lock__guard.html#ac6236e52082bd62d20f17de1625fd649">grpc::lock_guard::lock_internal</a></div><div class="ttdeci">void lock_internal()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:64</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html_a23567fcb3d8a7d5f29834ddbcbbe1d1d"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html#a23567fcb3d8a7d5f29834ddbcbbe1d1d">gpr_mu_destroy</a></div><div class="ttdeci">GPRAPI void gpr_mu_destroy(gpr_mu *mu)</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html_a7001a8164ce893911acf26d2fb8fd2ba"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html#a7001a8164ce893911acf26d2fb8fd2ba">gpr_mu_lock</a></div><div class="ttdeci">GPRAPI void gpr_mu_lock(gpr_mu *mu)</div></div>
- <div class="ttc" id="classgrpc_1_1condition__variable_html"><div class="ttname"><a href="classgrpc_1_1condition__variable.html">grpc::condition_variable</a></div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:87</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html_af0e6cc39401a0ee35b728f5b88135376"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html#af0e6cc39401a0ee35b728f5b88135376">gpr_mu_unlock</a></div><div class="ttdeci">GPRAPI void gpr_mu_unlock(gpr_mu *mu)</div></div>
- <div class="ttc" id="classgrpc_1_1condition__variable_html_ab96cbd3448680ce017794565847181ca"><div class="ttname"><a href="classgrpc_1_1condition__variable.html#ab96cbd3448680ce017794565847181ca">grpc::condition_variable::~condition_variable</a></div><div class="ttdeci">~condition_variable()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:90</div></div>
- <div class="ttc" id="classgrpc_1_1lock__guard_html_ac99f7ed1e7b1e177a20b23f230eaf1c2"><div class="ttname"><a href="classgrpc_1_1lock__guard.html#ac99f7ed1e7b1e177a20b23f230eaf1c2">grpc::lock_guard::~lock_guard</a></div><div class="ttdeci">~lock_guard()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:61</div></div>
- <div class="ttc" id="sync__posix_8h_html_a1ad613e07180c0459cda9f3f6d881885"><div class="ttname"><a href="sync__posix_8h.html#a1ad613e07180c0459cda9f3f6d881885">gpr_cv</a></div><div class="ttdeci">pthread_cond_t gpr_cv</div><div class="ttdef"><b>Definition:</b> sync_posix.h:42</div></div>
- <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>
- <div class="ttc" id="classgrpc_1_1condition__variable_html_a09a9b8a854f939962c6080bd2764dd36"><div class="ttname"><a href="classgrpc_1_1condition__variable.html#a09a9b8a854f939962c6080bd2764dd36">grpc::condition_variable::notify_all</a></div><div class="ttdeci">void notify_all()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:97</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html_a989fb0f141d90a05b20425ebdc77936d"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html#a989fb0f141d90a05b20425ebdc77936d">gpr_mu_init</a></div><div class="ttdeci">GPRAPI void gpr_mu_init(gpr_mu *mu)</div></div>
- <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>
- <div class="ttc" id="structgpr__mu_html"><div class="ttname"><a href="structgpr__mu.html">gpr_mu</a></div><div class="ttdef"><b>Definition:</b> sync_windows.h:39</div></div>
- <div class="ttc" id="classgrpc_1_1mutex_html_ae012e9f1c5cafd9d6f77a9a81d641581"><div class="ttname"><a href="classgrpc_1_1mutex.html#ae012e9f1c5cafd9d6f77a9a81d641581">grpc::mutex::mutex</a></div><div class="ttdeci">mutex()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:47</div></div>
- <div class="ttc" id="classgrpc_1_1condition__variable_html_abc49965bc36f319781bb315fff7d9fb3"><div class="ttname"><a href="classgrpc_1_1condition__variable.html#abc49965bc36f319781bb315fff7d9fb3">grpc::condition_variable::notify_one</a></div><div class="ttdeci">void notify_one()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:96</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html_a053788a2217043c527afc8b424568b22"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html#a053788a2217043c527afc8b424568b22">gpr_cv_destroy</a></div><div class="ttdeci">GPRAPI void gpr_cv_destroy(gpr_cv *cv)</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2sync_8h_html_a684cb215f9f840791372180a810b405d"><div class="ttname"><a href="grpc_2impl_2codegen_2sync_8h.html#a684cb215f9f840791372180a810b405d">gpr_cv_broadcast</a></div><div class="ttdeci">GPRAPI void gpr_cv_broadcast(gpr_cv *cv)</div></div>
- <div class="ttc" id="grpc_2impl_2codegen_2time_8h_html_a57c9693ef253d0951363c5dafb6586df"><div class="ttname"><a href="grpc_2impl_2codegen_2time_8h.html#a57c9693ef253d0951363c5dafb6586df">gpr_inf_future</a></div><div class="ttdeci">GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)</div></div>
- <div class="ttc" id="classgrpc_1_1unique__lock_html_af631f112239d5fb5aeff2ed1335e7ccd"><div class="ttname"><a href="classgrpc_1_1unique__lock.html#af631f112239d5fb5aeff2ed1335e7ccd">grpc::unique_lock::unlock</a></div><div class="ttdeci">void unlock()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:84</div></div>
- <div class="ttc" id="classgrpc_1_1lock__guard_html_ad5556ef1ebffe0cf983871fbc61fe264"><div class="ttname"><a href="classgrpc_1_1lock__guard.html#ad5556ef1ebffe0cf983871fbc61fe264">grpc::lock_guard::lock_guard</a></div><div class="ttdeci">lock_guard(mutex &mu)</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:60</div></div>
- <div class="ttc" id="classgrpc_1_1unique__lock_html_ae29c07f1bdca4a39516f3841dac5cb54"><div class="ttname"><a href="classgrpc_1_1unique__lock.html#ae29c07f1bdca4a39516f3841dac5cb54">grpc::unique_lock::lock</a></div><div class="ttdeci">void lock()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:83</div></div>
- <div class="ttc" id="classgrpc_1_1mutex_html_a318a9bdff2281779aaea87344d6a3e5a"><div class="ttname"><a href="classgrpc_1_1mutex.html#a318a9bdff2281779aaea87344d6a3e5a">grpc::mutex::~mutex</a></div><div class="ttdeci">~mutex()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:48</div></div>
- <div class="ttc" id="classgrpc_1_1lock__guard_html"><div class="ttname"><a href="classgrpc_1_1lock__guard.html">grpc::lock_guard</a></div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:42</div></div>
- <div class="ttc" id="classgrpc_1_1condition__variable_html_ac254c7b505f7b6e3c5c244f971aef611"><div class="ttname"><a href="classgrpc_1_1condition__variable.html#ac254c7b505f7b6e3c5c244f971aef611">grpc::condition_variable::condition_variable</a></div><div class="ttdeci">condition_variable()</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:89</div></div>
- <div class="ttc" id="classgrpc_1_1unique__lock_html"><div class="ttname"><a href="classgrpc_1_1unique__lock.html">grpc::unique_lock</a></div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:80</div></div>
- <div class="ttc" id="classgrpc_1_1unique__lock_html_ad82b43eea850ccccf7a1682668c3a633"><div class="ttname"><a href="classgrpc_1_1unique__lock.html#ad82b43eea850ccccf7a1682668c3a633">grpc::unique_lock::unique_lock</a></div><div class="ttdeci">unique_lock(mutex &mu)</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:82</div></div>
- <div class="ttc" id="classgrpc_1_1condition__variable_html_a58cced6338389e99d7e663ba0ab5aed8"><div class="ttname"><a href="classgrpc_1_1condition__variable.html#a58cced6338389e99d7e663ba0ab5aed8">grpc::condition_variable::wait</a></div><div class="ttdeci">void wait(lock_guard< mutex > &mu)</div><div class="ttdef"><b>Definition:</b> sync_no_cxx11.h:91</div></div>
- </div><!-- fragment --></div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Thu Aug 18 2016 21:34:58 for GRPC C++ by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.11
- </small></address>
- </body>
- </html>
|