aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/oscl__semaphore_8h_source.html
blob: b1421fcfe0da60305d7e8f58f8d833b4da351ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!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"/>
<title>oscl: oscl_semaphore.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>oscl_semaphore.h</h1><a href="oscl__semaphore_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c++ -*-</span>
<a name="l00002"></a>00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="comment">//                     O S C L _ S E M A P H O R E</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
<a name="l00007"></a>00007 
<a name="l00014"></a>00014 <span class="comment">// Definition file for OSCL Semaphore</span>
<a name="l00015"></a>00015 <span class="preprocessor">#ifndef OSCL_SEMAPHORE_H_INCLUDED</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_SEMAPHORE_H_INCLUDED</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span>
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef OSCLCONFIG_PROC_H_INCLUDED</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="osclconfig__proc_8h.html" title="This file contains configuration information for the linux platform.">osclconfig_proc.h</a>&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#endif</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef OSCL_THREAD_H_INCLUDED</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="oscl__thread_8h.html">oscl_thread.h</a>&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#endif</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 
<a name="l00030"></a><a class="code" href="classOsclSemaphore.html">00030</a> <span class="keyword">class </span><a class="code" href="classOsclSemaphore.html">OsclSemaphore</a>
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032     <span class="keyword">public</span>:
<a name="l00033"></a>00033 
<a name="l00037"></a>00037         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <a class="code" href="classOsclSemaphore.html#aec0bcef395545b802c54dc1fed0f5452">OsclSemaphore</a>();
<a name="l00038"></a>00038 
<a name="l00042"></a>00042         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <a class="code" href="classOsclSemaphore.html#a154cc1dcf29617518ceaa63a5e6ad602">~OsclSemaphore</a>();
<a name="l00043"></a>00043 
<a name="l00052"></a>00052         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <a class="code" href="classOsclProcStatus.html#aabff5308a6581dcb84532c3b5d63b763">OsclProcStatus::eOsclProcError</a> <a class="code" href="classOsclSemaphore.html#a7d429b43971a032ec93f04e10d782fe4">Create</a>(uint32 initVal = 0);
<a name="l00053"></a>00053 
<a name="l00062"></a>00062         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <a class="code" href="classOsclProcStatus.html#aabff5308a6581dcb84532c3b5d63b763">OsclProcStatus::eOsclProcError</a> <a class="code" href="classOsclSemaphore.html#a7b07fab8c9c2533b12c8942d6428c12d">Close</a>();
<a name="l00063"></a>00063 
<a name="l00072"></a>00072         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <a class="code" href="classOsclProcStatus.html#aabff5308a6581dcb84532c3b5d63b763">OsclProcStatus::eOsclProcError</a> <a class="code" href="classOsclSemaphore.html#aa583d1b56bae5d1146d5c6cb32d6b0fc">Wait</a>();
<a name="l00073"></a>00073 
<a name="l00085"></a>00085         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <a class="code" href="classOsclProcStatus.html#aabff5308a6581dcb84532c3b5d63b763">OsclProcStatus::eOsclProcError</a> <a class="code" href="classOsclSemaphore.html#aa583d1b56bae5d1146d5c6cb32d6b0fc">Wait</a>(uint32 timeout_msec);
<a name="l00086"></a>00086 
<a name="l00099"></a>00099         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <a class="code" href="classOsclProcStatus.html#aabff5308a6581dcb84532c3b5d63b763">OsclProcStatus::eOsclProcError</a> <a class="code" href="classOsclSemaphore.html#a5309c74394521ec112c6b7c10167b075">TryWait</a>();
<a name="l00100"></a>00100 
<a name="l00109"></a>00109         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <a class="code" href="classOsclProcStatus.html#aabff5308a6581dcb84532c3b5d63b763">OsclProcStatus::eOsclProcError</a> <a class="code" href="classOsclSemaphore.html#a79fbca43011e6c13d37c501817ab77ce">Signal</a>();
<a name="l00110"></a>00110 
<a name="l00111"></a>00111     <span class="keyword">private</span>:
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 
<a name="l00115"></a>00115         <span class="keywordtype">bool</span> bCreated;
<a name="l00116"></a>00116         <span class="comment">//for pthreads implementations without sem timedwait support.</span>
<a name="l00117"></a>00117         <a class="code" href="osclconfig__proc__unix__common_8h.html#ad614b4fd9839f6ad888115bdb9770be5">TOsclMutexObject</a> ObjMutex;
<a name="l00118"></a>00118         <a class="code" href="osclconfig__proc__unix__common_8h.html#af87c672d3e1f8e65c95240b4efb69fa8">TOsclConditionObject</a> ObjCondition;
<a name="l00119"></a>00119         uint32 iCount;
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 
<a name="l00122"></a>00122 };
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 
<a name="l00125"></a>00125 
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 <span class="preprocessor">#endif  //  END OF File</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.002.1.1 </small>
</small></address>
</body>
</html>