dash-docs/en/doxygen/html/classCSemaphore.html

336 lines
14 KiB
HTML

<!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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Dash Core: CSemaphore Class Reference</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</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>
<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="projectlogo"><img alt="Logo" src="bitcoin_logo_doxygen.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Dash Core
&#160;<span id="projectnumber">0.12.2.1</span>
</div>
<div id="projectbrief">P2P Digital Currency</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classCSemaphore.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classCSemaphore-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">CSemaphore Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="sync_8h_source.html">sync.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac9cc749c7424852d7fb4378811d0dae1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCSemaphore.html#ac9cc749c7424852d7fb4378811d0dae1">CSemaphore</a> (int init)</td></tr>
<tr class="separator:ac9cc749c7424852d7fb4378811d0dae1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c108bd981fe68527ec8ef5e7b0d116c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCSemaphore.html#a1c108bd981fe68527ec8ef5e7b0d116c">wait</a> ()</td></tr>
<tr class="separator:a1c108bd981fe68527ec8ef5e7b0d116c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb8a07e6cac29dc72f044cd536a9f9e5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCSemaphore.html#abb8a07e6cac29dc72f044cd536a9f9e5">try_wait</a> ()</td></tr>
<tr class="separator:abb8a07e6cac29dc72f044cd536a9f9e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6a956f6c191e824485fd3af6db39318"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCSemaphore.html#af6a956f6c191e824485fd3af6db39318">post</a> ()</td></tr>
<tr class="separator:af6a956f6c191e824485fd3af6db39318"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:afe13b8e59776248a0c49f9f2b31107fb"><td class="memItemLeft" align="right" valign="top">boost::condition_variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCSemaphore.html#afe13b8e59776248a0c49f9f2b31107fb">condition</a></td></tr>
<tr class="separator:afe13b8e59776248a0c49f9f2b31107fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac871c4228d6a9b7f67f340ba693a629d"><td class="memItemLeft" align="right" valign="top">boost::mutex&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCSemaphore.html#ac871c4228d6a9b7f67f340ba693a629d">mutex</a></td></tr>
<tr class="separator:ac871c4228d6a9b7f67f340ba693a629d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22a51512b911d93b37411cfffc764303"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCSemaphore.html#a22a51512b911d93b37411cfffc764303">value</a></td></tr>
<tr class="separator:a22a51512b911d93b37411cfffc764303"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="sync_8h_source.html#l00184">184</a> of file <a class="el" href="sync_8h_source.html">sync.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac9cc749c7424852d7fb4378811d0dae1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9cc749c7424852d7fb4378811d0dae1">&#9670;&nbsp;</a></span>CSemaphore()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">CSemaphore::CSemaphore </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>init</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="sync_8h_source.html#l00192">192</a> of file <a class="el" href="sync_8h_source.html">sync.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af6a956f6c191e824485fd3af6db39318"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6a956f6c191e824485fd3af6db39318">&#9670;&nbsp;</a></span>post()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void CSemaphore::post </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="sync_8h_source.html#l00212">212</a> of file <a class="el" href="sync_8h_source.html">sync.h</a>.</p>
<p class="reference">Referenced by <a class="el" href="net_8cpp_source.html#l02290">CConnman::Interrupt()</a>, <a class="el" href="sync_8h_source.html#l00238">CSemaphoreGrant::Release()</a>, and <a class="el" href="net_8cpp_source.html#l02306">CConnman::Stop()</a>.</p>
</div>
</div>
<a id="abb8a07e6cac29dc72f044cd536a9f9e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb8a07e6cac29dc72f044cd536a9f9e5">&#9670;&nbsp;</a></span>try_wait()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool CSemaphore::try_wait </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="sync_8h_source.html#l00203">203</a> of file <a class="el" href="sync_8h_source.html">sync.h</a>.</p>
<p class="reference">Referenced by <a class="el" href="sync_8h_source.html#l00246">CSemaphoreGrant::TryAcquire()</a>.</p>
</div>
</div>
<a id="a1c108bd981fe68527ec8ef5e7b0d116c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c108bd981fe68527ec8ef5e7b0d116c">&#9670;&nbsp;</a></span>wait()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void CSemaphore::wait </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="sync_8h_source.html#l00194">194</a> of file <a class="el" href="sync_8h_source.html">sync.h</a>.</p>
<p class="reference">Referenced by <a class="el" href="sync_8h_source.html#l00230">CSemaphoreGrant::Acquire()</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="afe13b8e59776248a0c49f9f2b31107fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe13b8e59776248a0c49f9f2b31107fb">&#9670;&nbsp;</a></span>condition</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">boost::condition_variable CSemaphore::condition</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="sync_8h_source.html#l00187">187</a> of file <a class="el" href="sync_8h_source.html">sync.h</a>.</p>
<p class="reference">Referenced by <a class="el" href="sync_8h_source.html#l00212">post()</a>, and <a class="el" href="sync_8h_source.html#l00194">wait()</a>.</p>
</div>
</div>
<a id="ac871c4228d6a9b7f67f340ba693a629d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac871c4228d6a9b7f67f340ba693a629d">&#9670;&nbsp;</a></span>mutex</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">boost::mutex CSemaphore::mutex</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="sync_8h_source.html#l00188">188</a> of file <a class="el" href="sync_8h_source.html">sync.h</a>.</p>
<p class="reference">Referenced by <a class="el" href="sync_8h_source.html#l00212">post()</a>, <a class="el" href="sync_8h_source.html#l00203">try_wait()</a>, and <a class="el" href="sync_8h_source.html#l00194">wait()</a>.</p>
</div>
</div>
<a id="a22a51512b911d93b37411cfffc764303"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22a51512b911d93b37411cfffc764303">&#9670;&nbsp;</a></span>value</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int CSemaphore::value</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="sync_8h_source.html#l00189">189</a> of file <a class="el" href="sync_8h_source.html">sync.h</a>.</p>
<p class="reference">Referenced by <a class="el" href="sync_8h_source.html#l00212">post()</a>, <a class="el" href="sync_8h_source.html#l00203">try_wait()</a>, and <a class="el" href="sync_8h_source.html#l00194">wait()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/<a class="el" href="sync_8h_source.html">sync.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="classCSemaphore.html">CSemaphore</a></li>
<li class="footer">Generated on Thu Dec 14 2017 13:15:12 for Dash Core by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
</ul>
</div>
</body>
</html>