blob: 6cc30944b3118779442816f5686338a9d687f0d4 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>oscl_procstatus.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<hr><h1>oscl_procstatus.h</h1><a href="oscl__procstatus_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span>
00002
00003 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
00004
00005
00006
00007 <span class="comment">// OSCL_T H R E A D (T H R E A D I M P L E M E N T A T I O N)</span>
00008
00009
00010
00011 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
00012
00013
00014
00025 <span class="preprocessor">#ifndef OSCL_PROCSTATUS_H_INCLUDED</span>
00026 <span class="preprocessor"></span>
00027 <span class="preprocessor">#define OSCL_PROCSTATUS_H_INCLUDED</span>
00028 <span class="preprocessor"></span>
00029
00030
<a name="l00037"></a><a class="code" href="classOsclProcStatus.html">00037</a> <span class="keyword">class </span><a class="code" href="classOsclProcStatus.html">OsclProcStatus</a>
00038 {
00039
00040
00041
00042
00043
00044 <span class="keyword">public</span>:
00045
00046
00047
00048 <span class="comment">// Enumerated Error values</span>
00049
00050
00051
<a name="l00058"></a><a class="code" href="classOsclProcStatus.html#s35">00058</a> <span class="keyword">enum</span> <a class="code" href="classOsclProcStatus.html#s35">eOsclProcError</a>
00059 {
00060 <a class="code" href="classOsclProcStatus.html#s35s0">SUCCESS_ERROR</a> = 0, <span class="comment">// Function returned succesfully</span>
00061 <a class="code" href="classOsclProcStatus.html#s35s1">OTHER_ERROR</a>, <span class="comment">// Function returned some error</span>
00062 <a class="code" href="classOsclProcStatus.html#s35s2">TOO_MANY_THREADS_ERROR</a>, <span class="comment">// Cannot create another thread</span>
00063 <a class="code" href="classOsclProcStatus.html#s35s3">BAD_THREADID_ADDR_ERROR</a>, <span class="comment">// The address for the thread id is not correct</span>
00064 <a class="code" href="classOsclProcStatus.html#s35s4">MAX_THRDS_REACHED_ERROR</a>, <span class="comment">// No more threads can be created in the system</span>
00065 <a class="code" href="classOsclProcStatus.html#s35s5">INVALID_THREAD_ID_ERROR</a>, <span class="comment">// Invalid thread identifier</span>
00066 <a class="code" href="classOsclProcStatus.html#s35s6">NOT_ENOUGH_MEMORY_ERROR</a>, <span class="comment">// Not enough storage is available to process this command</span>
00067 <a class="code" href="classOsclProcStatus.html#s35s7">OUTOFMEMORY_ERROR</a>, <span class="comment">// Not enough storage is available to complete this operation</span>
00068 <a class="code" href="classOsclProcStatus.html#s35s8">NOT_ENOUGH_RESOURCES_ERROR</a>, <span class="comment">// Not Enough resources available</span>
00069 <a class="code" href="classOsclProcStatus.html#s35s9">THREAD_1_INACTIVE_ERROR</a>, <span class="comment">// The signal handler cannot be set</span>
00070 <a class="code" href="classOsclProcStatus.html#s35s10">ALREADY_SUSPENDED_ERROR</a>, <span class="comment">// Thread is already suspended</span>
00071 <a class="code" href="classOsclProcStatus.html#s35s11">NOT_SUSPENDED_ERROR</a>, <span class="comment">// Thread cannot be suspended</span>
00072 <a class="code" href="classOsclProcStatus.html#s35s12">INVALID_THREAD_ERROR</a>, <span class="comment">// Referring to invalid thread</span>
00073 <a class="code" href="classOsclProcStatus.html#s35s13">INVALID_PARAM_ERROR</a>, <span class="comment">// Invalid parameter passed in the API</span>
00074 <a class="code" href="classOsclProcStatus.html#s35s14">NO_PERMISSION_ERROR</a>, <span class="comment">// Operation not permitted</span>
00075 <a class="code" href="classOsclProcStatus.html#s35s15">INVALID_PRIORITY_ERROR</a>, <span class="comment">// Priority is not a valid OSCL priority</span>
00076 <a class="code" href="classOsclProcStatus.html#s35s16">PSHARED_NOT_ZERO_ERROR</a>, <span class="comment">// Trying to create global semaphore</span>
00077 <a class="code" href="classOsclProcStatus.html#s35s17">EXCEED_MAX_COUNT_VARIABLE_ERROR</a>, <span class="comment">// Exceeding maximum possible value for semaphore count</span>
00078 <a class="code" href="classOsclProcStatus.html#s35s18">THREAD_BLOCK_ERROR</a>, <span class="comment">// Thread is blocked</span>
00079 <a class="code" href="classOsclProcStatus.html#s35s19">EXCEED_MAX_SEM_COUNT_ERROR</a>, <span class="comment">// Out of range of semaphore count</span>
00080 <a class="code" href="classOsclProcStatus.html#s35s20">INVALID_HANDLE_ERROR</a>, <span class="comment">// Invalid handle</span>
00081 <a class="code" href="classOsclProcStatus.html#s35s21">INVALID_OPERATION_ERROR</a>, <span class="comment">// Invalid operation</span>
00082 <a class="code" href="classOsclProcStatus.html#s35s22">INVALID_FUNCTION_ERROR</a>,
00083 <a class="code" href="classOsclProcStatus.html#s35s23">INVALID_ACCESS_ERROR</a>,
00084 <a class="code" href="classOsclProcStatus.html#s35s24">INVALID_ARGUMENT_ERROR</a>,
00085 <a class="code" href="classOsclProcStatus.html#s35s25">SYSTEM_RESOURCES_UNAVAILABLE_ERROR</a>,
00086 <a class="code" href="classOsclProcStatus.html#s35s26">INVALID_POINTER_ERROR</a>,
00087 <a class="code" href="classOsclProcStatus.html#s35s27">RELOCK_MUTEX_ERROR</a>,
00088 <a class="code" href="classOsclProcStatus.html#s35s28">THREAD_NOT_OWN_MUTEX_ERROR</a>,
00089 <a class="code" href="classOsclProcStatus.html#s35s29">MUTEX_LOCKED_ERROR</a>,
00090 <a class="code" href="classOsclProcStatus.html#s35s30">WAIT_ABANDONED_ERROR</a>,<span class="comment">//thread terminated while waiting</span>
00091 <a class="code" href="classOsclProcStatus.html#s35s31">WAIT_TIMEOUT_ERROR</a>, <span class="comment">//timed wait expired without acquiring</span>
00092 <a class="code" href="classOsclProcStatus.html#s35s32">SEM_NOT_SIGNALED_ERROR</a>, <span class="comment">//trywait returned without acquiring</span>
00093 <a class="code" href="classOsclProcStatus.html#s35s33">PSHARED_ATTRIBUTE_SETTING_ERROR</a>, <span class="comment">// Error at setting pthread attributes</span>
00094 <a class="code" href="classOsclProcStatus.html#s35s34">NOT_IMPLEMENTED</a> <span class="comment">//function not implemented on this platform.</span>
00095 } ;
00096
00097
00098
00099 };
00100
00101
00102
00103 <span class="preprocessor">#endif</span>
00104 <span class="preprocessor"></span>
</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
</small></address>
</body>
</html>