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.9.1"/>
|
---|
7 | <title>Flair: flair::core::Semaphore Class Reference</title>
|
---|
8 | <link href="tabs.css" rel="stylesheet" type="text/css"/>
|
---|
9 | <script type="text/javascript" src="jquery.js"></script>
|
---|
10 | <script type="text/javascript" src="dynsections.js"></script>
|
---|
11 | <link href="navtree.css" rel="stylesheet" type="text/css"/>
|
---|
12 | <script type="text/javascript" src="resize.js"></script>
|
---|
13 | <script type="text/javascript" src="navtreedata.js"></script>
|
---|
14 | <script type="text/javascript" src="navtree.js"></script>
|
---|
15 | <script type="text/javascript">
|
---|
16 | $(document).ready(initResizable);
|
---|
17 | $(window).load(resizeHeight);
|
---|
18 | </script>
|
---|
19 | <link href="search/search.css" rel="stylesheet" type="text/css"/>
|
---|
20 | <script type="text/javascript" src="search/searchdata.js"></script>
|
---|
21 | <script type="text/javascript" src="search/search.js"></script>
|
---|
22 | <script type="text/javascript">
|
---|
23 | $(document).ready(function() { init_search(); });
|
---|
24 | </script>
|
---|
25 | <link href="doxygen.css" rel="stylesheet" type="text/css" />
|
---|
26 | </head>
|
---|
27 | <body>
|
---|
28 | <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
---|
29 | <div id="titlearea">
|
---|
30 | <table cellspacing="0" cellpadding="0">
|
---|
31 | <tbody>
|
---|
32 | <tr style="height: 56px;">
|
---|
33 | <td id="projectlogo"><img alt="Logo" src="logo_hds.png"/></td>
|
---|
34 | <td style="padding-left: 0.5em;">
|
---|
35 | <div id="projectname">Flair
|
---|
36 | </div>
|
---|
37 | <div id="projectbrief">Framework Libre Air</div>
|
---|
38 | </td>
|
---|
39 | </tr>
|
---|
40 | </tbody>
|
---|
41 | </table>
|
---|
42 | </div>
|
---|
43 | <!-- end header part -->
|
---|
44 | <!-- Generated by Doxygen 1.8.9.1 -->
|
---|
45 | <script type="text/javascript">
|
---|
46 | var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
---|
47 | </script>
|
---|
48 | <div id="navrow1" class="tabs">
|
---|
49 | <ul class="tablist">
|
---|
50 | <li><a href="index.html"><span>Main Page</span></a></li>
|
---|
51 | <li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
---|
52 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
---|
53 | <li><a href="files.html"><span>Files</span></a></li>
|
---|
54 | <li>
|
---|
55 | <div id="MSearchBox" class="MSearchBoxInactive">
|
---|
56 | <span class="left">
|
---|
57 | <img id="MSearchSelect" src="search/mag_sel.png"
|
---|
58 | onmouseover="return searchBox.OnSearchSelectShow()"
|
---|
59 | onmouseout="return searchBox.OnSearchSelectHide()"
|
---|
60 | alt=""/>
|
---|
61 | <input type="text" id="MSearchField" value="Search" accesskey="S"
|
---|
62 | onfocus="searchBox.OnSearchFieldFocus(true)"
|
---|
63 | onblur="searchBox.OnSearchFieldFocus(false)"
|
---|
64 | onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
---|
65 | </span><span class="right">
|
---|
66 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
---|
67 | </span>
|
---|
68 | </div>
|
---|
69 | </li>
|
---|
70 | </ul>
|
---|
71 | </div>
|
---|
72 | <div id="navrow2" class="tabs2">
|
---|
73 | <ul class="tablist">
|
---|
74 | <li><a href="annotated.html"><span>Class List</span></a></li>
|
---|
75 | <li><a href="classes.html"><span>Class Index</span></a></li>
|
---|
76 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
---|
77 | <li><a href="functions.html"><span>Class Members</span></a></li>
|
---|
78 | </ul>
|
---|
79 | </div>
|
---|
80 | </div><!-- top -->
|
---|
81 | <div id="side-nav" class="ui-resizable side-nav-resizable">
|
---|
82 | <div id="nav-tree">
|
---|
83 | <div id="nav-tree-contents">
|
---|
84 | <div id="nav-sync" class="sync"></div>
|
---|
85 | </div>
|
---|
86 | </div>
|
---|
87 | <div id="splitbar" style="-moz-user-select:none;"
|
---|
88 | class="ui-resizable-handle">
|
---|
89 | </div>
|
---|
90 | </div>
|
---|
91 | <script type="text/javascript">
|
---|
92 | $(document).ready(function(){initNavTree('classflair_1_1core_1_1_semaphore.html','');});
|
---|
93 | </script>
|
---|
94 | <div id="doc-content">
|
---|
95 | <!-- window showing the filter options -->
|
---|
96 | <div id="MSearchSelectWindow"
|
---|
97 | onmouseover="return searchBox.OnSearchSelectShow()"
|
---|
98 | onmouseout="return searchBox.OnSearchSelectHide()"
|
---|
99 | onkeydown="return searchBox.OnSearchSelectKey(event)">
|
---|
100 | </div>
|
---|
101 |
|
---|
102 | <!-- iframe showing the search results (closed by default) -->
|
---|
103 | <div id="MSearchResultsWindow">
|
---|
104 | <iframe src="javascript:void(0)" frameborder="0"
|
---|
105 | name="MSearchResults" id="MSearchResults">
|
---|
106 | </iframe>
|
---|
107 | </div>
|
---|
108 |
|
---|
109 | <div class="header">
|
---|
110 | <div class="summary">
|
---|
111 | <a href="#pub-methods">Public Member Functions</a> |
|
---|
112 | <a href="classflair_1_1core_1_1_semaphore-members.html">List of all members</a> </div>
|
---|
113 | <div class="headertitle">
|
---|
114 | <div class="title">flair::core::Semaphore Class Reference</div> </div>
|
---|
115 | </div><!--header-->
|
---|
116 | <div class="contents">
|
---|
117 |
|
---|
118 | <p>Class defining a semaphore.
|
---|
119 | <a href="classflair_1_1core_1_1_semaphore.html#details">More...</a></p>
|
---|
120 |
|
---|
121 | <p><code>#include <<a class="el" href="_semaphore_8h_source.html">Semaphore.h</a>></code></p>
|
---|
122 | <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
---|
123 | <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for flair::core::Semaphore:</div>
|
---|
124 | <div id="dynsection-0-summary" class="dynsummary" style="display:block;">
|
---|
125 | </div>
|
---|
126 | <div id="dynsection-0-content" class="dyncontent" style="display:none;">
|
---|
127 | <div class="center">
|
---|
128 | <img src="classflair_1_1core_1_1_semaphore.png" usemap="#flair::core::Semaphore_map" alt=""/>
|
---|
129 | <map id="flair::core::Semaphore_map" name="flair::core::Semaphore_map">
|
---|
130 | <area href="classflair_1_1core_1_1_object.html" title="Base class for all Framework's classes. " alt="flair::core::Object" shape="rect" coords="0,0,136,24"/>
|
---|
131 | </map>
|
---|
132 | </div></div>
|
---|
133 | <table class="memberdecls">
|
---|
134 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
---|
135 | Public Member Functions</h2></td></tr>
|
---|
136 | <tr class="memitem:a5db3e44d22d40dd29f6853394300d1df"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_semaphore.html#a5db3e44d22d40dd29f6853394300d1df">Semaphore</a> (const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> *parent, uint32_t initialValue, std::string name="")</td></tr>
|
---|
137 | <tr class="memdesc:a5db3e44d22d40dd29f6853394300d1df"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a5db3e44d22d40dd29f6853394300d1df">More...</a><br /></td></tr>
|
---|
138 | <tr class="separator:a5db3e44d22d40dd29f6853394300d1df"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
139 | <tr class="memitem:ae1a3001af72b853a3de39bd11f564790"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_semaphore.html#ae1a3001af72b853a3de39bd11f564790">~Semaphore</a> ()</td></tr>
|
---|
140 | <tr class="memdesc:ae1a3001af72b853a3de39bd11f564790"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ae1a3001af72b853a3de39bd11f564790">More...</a><br /></td></tr>
|
---|
141 | <tr class="separator:ae1a3001af72b853a3de39bd11f564790"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
142 | <tr class="memitem:a640b354e4a388130befe88ea2b6a2c09"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_semaphore.html#a640b354e4a388130befe88ea2b6a2c09">GetSemaphore</a> (<a class="el" href="namespaceflair_1_1core.html#acc0fa041e08ecf73b2d1d723c339a736">Time</a> timeout=TIME_INFINITE) const </td></tr>
|
---|
143 | <tr class="memdesc:a640b354e4a388130befe88ea2b6a2c09"><td class="mdescLeft"> </td><td class="mdescRight">GetSemaphore. <a href="#a640b354e4a388130befe88ea2b6a2c09">More...</a><br /></td></tr>
|
---|
144 | <tr class="separator:a640b354e4a388130befe88ea2b6a2c09"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
145 | <tr class="memitem:a045a06ff109107b9d767efc2ec66d180"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_semaphore.html#a045a06ff109107b9d767efc2ec66d180">ReleaseSemaphore</a> (void) const </td></tr>
|
---|
146 | <tr class="memdesc:a045a06ff109107b9d767efc2ec66d180"><td class="mdescLeft"> </td><td class="mdescRight">ReleaseSemaphore. <a href="#a045a06ff109107b9d767efc2ec66d180">More...</a><br /></td></tr>
|
---|
147 | <tr class="separator:a045a06ff109107b9d767efc2ec66d180"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
148 | <tr class="inherit_header pub_methods_classflair_1_1core_1_1_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classflair_1_1core_1_1_object')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classflair_1_1core_1_1_object.html">flair::core::Object</a></td></tr>
|
---|
149 | <tr class="memitem:aec92383fd5bf68d9df10414862b7e95c inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#aec92383fd5bf68d9df10414862b7e95c">Object</a> (const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> *parent=NULL, std::string name="", std::string type="")</td></tr>
|
---|
150 | <tr class="memdesc:aec92383fd5bf68d9df10414862b7e95c inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#aec92383fd5bf68d9df10414862b7e95c">More...</a><br /></td></tr>
|
---|
151 | <tr class="separator:aec92383fd5bf68d9df10414862b7e95c inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
152 | <tr class="memitem:aa2bde0e6677bbef705c96c93cb06ad09 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#aa2bde0e6677bbef705c96c93cb06ad09">~Object</a> ()</td></tr>
|
---|
153 | <tr class="memdesc:aa2bde0e6677bbef705c96c93cb06ad09 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#aa2bde0e6677bbef705c96c93cb06ad09">More...</a><br /></td></tr>
|
---|
154 | <tr class="separator:aa2bde0e6677bbef705c96c93cb06ad09 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
155 | <tr class="memitem:a9b0344dff7e1c05424d9152c8274523a inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a9b0344dff7e1c05424d9152c8274523a">ObjectName</a> (void) const </td></tr>
|
---|
156 | <tr class="memdesc:a9b0344dff7e1c05424d9152c8274523a inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Name. <a href="#a9b0344dff7e1c05424d9152c8274523a">More...</a><br /></td></tr>
|
---|
157 | <tr class="separator:a9b0344dff7e1c05424d9152c8274523a inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
158 | <tr class="memitem:a609a250ec037fbcaf8957c8f1dcbfc53 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a609a250ec037fbcaf8957c8f1dcbfc53">ObjectType</a> (void) const </td></tr>
|
---|
159 | <tr class="memdesc:a609a250ec037fbcaf8957c8f1dcbfc53 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Type. <a href="#a609a250ec037fbcaf8957c8f1dcbfc53">More...</a><br /></td></tr>
|
---|
160 | <tr class="separator:a609a250ec037fbcaf8957c8f1dcbfc53 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
161 | <tr class="memitem:a360c112cc3017a5152ebf6e84d2efa70 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a360c112cc3017a5152ebf6e84d2efa70">Parent</a> (void) const </td></tr>
|
---|
162 | <tr class="memdesc:a360c112cc3017a5152ebf6e84d2efa70 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Parent. <a href="#a360c112cc3017a5152ebf6e84d2efa70">More...</a><br /></td></tr>
|
---|
163 | <tr class="separator:a360c112cc3017a5152ebf6e84d2efa70 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
164 | <tr class="memitem:ae22db4d723ec2d50b3ba48f26a6a770c inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">std::vector< const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> * > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#ae22db4d723ec2d50b3ba48f26a6a770c">TypeChilds</a> (void) const </td></tr>
|
---|
165 | <tr class="memdesc:ae22db4d723ec2d50b3ba48f26a6a770c inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Childs of the same type. <a href="#ae22db4d723ec2d50b3ba48f26a6a770c">More...</a><br /></td></tr>
|
---|
166 | <tr class="separator:ae22db4d723ec2d50b3ba48f26a6a770c inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
167 | <tr class="memitem:a344f81cd35805a9501098bf727ac1a10 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">std::vector< const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> * > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a344f81cd35805a9501098bf727ac1a10">Childs</a> (void) const </td></tr>
|
---|
168 | <tr class="memdesc:a344f81cd35805a9501098bf727ac1a10 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Childs. <a href="#a344f81cd35805a9501098bf727ac1a10">More...</a><br /></td></tr>
|
---|
169 | <tr class="separator:a344f81cd35805a9501098bf727ac1a10 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
170 | <tr class="memitem:af001feba14fc053aa778e61080a0b4cf inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#af001feba14fc053aa778e61080a0b4cf">Information</a> (const char *function, int line, const char *format,...) const </td></tr>
|
---|
171 | <tr class="memdesc:af001feba14fc053aa778e61080a0b4cf inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Formatted information. <a href="#af001feba14fc053aa778e61080a0b4cf">More...</a><br /></td></tr>
|
---|
172 | <tr class="separator:af001feba14fc053aa778e61080a0b4cf inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
173 | <tr class="memitem:a168b18451b2ee6126e1e81d452005ff6 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a168b18451b2ee6126e1e81d452005ff6">Warning</a> (const char *function, const char *format,...) const </td></tr>
|
---|
174 | <tr class="memdesc:a168b18451b2ee6126e1e81d452005ff6 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Formatted warning. <a href="#a168b18451b2ee6126e1e81d452005ff6">More...</a><br /></td></tr>
|
---|
175 | <tr class="separator:a168b18451b2ee6126e1e81d452005ff6 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
176 | <tr class="memitem:a3ca9694d29ec2b0491739879685df5ca inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a3ca9694d29ec2b0491739879685df5ca">Error</a> (const char *function, const char *format,...) const </td></tr>
|
---|
177 | <tr class="memdesc:a3ca9694d29ec2b0491739879685df5ca inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Formatted error. <a href="#a3ca9694d29ec2b0491739879685df5ca">More...</a><br /></td></tr>
|
---|
178 | <tr class="separator:a3ca9694d29ec2b0491739879685df5ca inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
179 | <tr class="memitem:a36cdd7f556e78b1bddd1d1fe4264bb85 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1core_1_1_object.html#a36cdd7f556e78b1bddd1d1fe4264bb85">ErrorOccured</a> (bool recursive=true) const </td></tr>
|
---|
180 | <tr class="memdesc:a36cdd7f556e78b1bddd1d1fe4264bb85 inherit pub_methods_classflair_1_1core_1_1_object"><td class="mdescLeft"> </td><td class="mdescRight">Has an errror occured? <a href="#a36cdd7f556e78b1bddd1d1fe4264bb85">More...</a><br /></td></tr>
|
---|
181 | <tr class="separator:a36cdd7f556e78b1bddd1d1fe4264bb85 inherit pub_methods_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
182 | </table><table class="memberdecls">
|
---|
183 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
|
---|
184 | Additional Inherited Members</h2></td></tr>
|
---|
185 | <tr class="inherit_header pub_types_classflair_1_1core_1_1_object"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classflair_1_1core_1_1_object')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classflair_1_1core_1_1_object.html">flair::core::Object</a></td></tr>
|
---|
186 | <tr class="memitem:aed5fccda511f97487040fed29f4efc97 inherit pub_types_classflair_1_1core_1_1_object"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed5fccda511f97487040fed29f4efc97"></a>enum  </td><td class="memItemRight" valign="bottom"><b>color_t</b> { <b>Auto</b> = 0,
|
---|
187 | <b>Red</b> = 31,
|
---|
188 | <b>Green</b> = 32,
|
---|
189 | <b>Orange</b> = 33
|
---|
190 | }</td></tr>
|
---|
191 | <tr class="separator:aed5fccda511f97487040fed29f4efc97 inherit pub_types_classflair_1_1core_1_1_object"><td class="memSeparator" colspan="2"> </td></tr>
|
---|
192 | </table>
|
---|
193 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
---|
194 | <div class="textblock"><p>Class defining a semaphore. </p>
|
---|
195 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
---|
196 | <a class="anchor" id="a5db3e44d22d40dd29f6853394300d1df"></a>
|
---|
197 | <div class="memitem">
|
---|
198 | <div class="memproto">
|
---|
199 | <table class="memname">
|
---|
200 | <tr>
|
---|
201 | <td class="memname">flair::core::Semaphore::Semaphore </td>
|
---|
202 | <td>(</td>
|
---|
203 | <td class="paramtype">const <a class="el" href="classflair_1_1core_1_1_object.html">Object</a> * </td>
|
---|
204 | <td class="paramname"><em>parent</em>, </td>
|
---|
205 | </tr>
|
---|
206 | <tr>
|
---|
207 | <td class="paramkey"></td>
|
---|
208 | <td></td>
|
---|
209 | <td class="paramtype">uint32_t </td>
|
---|
210 | <td class="paramname"><em>initialValue</em>, </td>
|
---|
211 | </tr>
|
---|
212 | <tr>
|
---|
213 | <td class="paramkey"></td>
|
---|
214 | <td></td>
|
---|
215 | <td class="paramtype">std::string </td>
|
---|
216 | <td class="paramname"><em>name</em> = <code>""</code> </td>
|
---|
217 | </tr>
|
---|
218 | <tr>
|
---|
219 | <td></td>
|
---|
220 | <td>)</td>
|
---|
221 | <td></td><td></td>
|
---|
222 | </tr>
|
---|
223 | </table>
|
---|
224 | </div><div class="memdoc">
|
---|
225 |
|
---|
226 | <p>Constructor. </p>
|
---|
227 | <p>Construct a semaphore.</p>
|
---|
228 | <dl class="params"><dt>Parameters</dt><dd>
|
---|
229 | <table class="params">
|
---|
230 | <tr><td class="paramname">parent</td><td>parent </td></tr>
|
---|
231 | <tr><td class="paramname">name</td><td>name </td></tr>
|
---|
232 | </table>
|
---|
233 | </dd>
|
---|
234 | </dl>
|
---|
235 |
|
---|
236 | </div>
|
---|
237 | </div>
|
---|
238 | <a class="anchor" id="ae1a3001af72b853a3de39bd11f564790"></a>
|
---|
239 | <div class="memitem">
|
---|
240 | <div class="memproto">
|
---|
241 | <table class="memname">
|
---|
242 | <tr>
|
---|
243 | <td class="memname">flair::core::Semaphore::~Semaphore </td>
|
---|
244 | <td>(</td>
|
---|
245 | <td class="paramname"></td><td>)</td>
|
---|
246 | <td></td>
|
---|
247 | </tr>
|
---|
248 | </table>
|
---|
249 | </div><div class="memdoc">
|
---|
250 |
|
---|
251 | <p>Destructor. </p>
|
---|
252 |
|
---|
253 | </div>
|
---|
254 | </div>
|
---|
255 | <h2 class="groupheader">Member Function Documentation</h2>
|
---|
256 | <a class="anchor" id="a640b354e4a388130befe88ea2b6a2c09"></a>
|
---|
257 | <div class="memitem">
|
---|
258 | <div class="memproto">
|
---|
259 | <table class="memname">
|
---|
260 | <tr>
|
---|
261 | <td class="memname">bool flair::core::Semaphore::GetSemaphore </td>
|
---|
262 | <td>(</td>
|
---|
263 | <td class="paramtype"><a class="el" href="namespaceflair_1_1core.html#acc0fa041e08ecf73b2d1d723c339a736">Time</a> </td>
|
---|
264 | <td class="paramname"><em>timeout</em> = <code>TIME_INFINITE</code></td><td>)</td>
|
---|
265 | <td> const</td>
|
---|
266 | </tr>
|
---|
267 | </table>
|
---|
268 | </div><div class="memdoc">
|
---|
269 |
|
---|
270 | <p>GetSemaphore. </p>
|
---|
271 | <p>Lock the semaphore.</p>
|
---|
272 | <dl class="params"><dt>Parameters</dt><dd>
|
---|
273 | <table class="params">
|
---|
274 | <tr><td class="paramname">timeout</td><td>The timeout, in nanoseconds. </td></tr>
|
---|
275 | </table>
|
---|
276 | </dd>
|
---|
277 | </dl>
|
---|
278 |
|
---|
279 | </div>
|
---|
280 | </div>
|
---|
281 | <a class="anchor" id="a045a06ff109107b9d767efc2ec66d180"></a>
|
---|
282 | <div class="memitem">
|
---|
283 | <div class="memproto">
|
---|
284 | <table class="memname">
|
---|
285 | <tr>
|
---|
286 | <td class="memname">bool flair::core::Semaphore::ReleaseSemaphore </td>
|
---|
287 | <td>(</td>
|
---|
288 | <td class="paramtype">void </td>
|
---|
289 | <td class="paramname"></td><td>)</td>
|
---|
290 | <td> const</td>
|
---|
291 | </tr>
|
---|
292 | </table>
|
---|
293 | </div><div class="memdoc">
|
---|
294 |
|
---|
295 | <p>ReleaseSemaphore. </p>
|
---|
296 | <p>Unlock the semaphore. </p>
|
---|
297 |
|
---|
298 | </div>
|
---|
299 | </div>
|
---|
300 | </div><!-- contents -->
|
---|
301 | </div><!-- doc-content -->
|
---|
302 | <!-- start footer part -->
|
---|
303 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
---|
304 | <ul>
|
---|
305 | <li class="navelem"><a class="el" href="namespaceflair.html">flair</a></li><li class="navelem"><a class="el" href="namespaceflair_1_1core.html">core</a></li><li class="navelem"><a class="el" href="classflair_1_1core_1_1_semaphore.html">Semaphore</a></li>
|
---|
306 | <li class="footer">Generated on Tue Jul 4 2017 07:52:55 for Flair by
|
---|
307 | <a href="http://www.doxygen.org/index.html">
|
---|
308 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
|
---|
309 | </ul>
|
---|
310 | </div>
|
---|
311 | </body>
|
---|
312 | </html>
|
---|