Home | History | Annotate | Download | only in oscl_html
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
      3 <title>oscl_procstatus.h Source File</title>
      4 <link href="doxygen.css" rel="stylesheet" type="text/css">
      5 </head><body>
      6 <!-- Generated by Doxygen 1.2.18 -->
      7 <center>
      8 <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>
      9 <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>
     10 00002 
     11 00003 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
     12 00004 
     13 00005 
     14 00006 
     15 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>
     16 00008 
     17 00009 
     18 00010 
     19 00011 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
     20 00012 
     21 00013 
     22 00014 
     23 00025 <span class="preprocessor">#ifndef OSCL_PROCSTATUS_H_INCLUDED</span>
     24 00026 <span class="preprocessor"></span>
     25 00027 <span class="preprocessor">#define OSCL_PROCSTATUS_H_INCLUDED</span>
     26 00028 <span class="preprocessor"></span>
     27 00029 
     28 00030 
     29 <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>
     30 00038 {
     31 00039 
     32 00040 
     33 00041 
     34 00042 
     35 00043 
     36 00044     <span class="keyword">public</span>:
     37 00045 
     38 00046 
     39 00047 
     40 00048 <span class="comment">// Enumerated Error values</span>
     41 00049 
     42 00050 
     43 00051 
     44 <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>
     45 00059         {
     46 00060             <a class="code" href="classOsclProcStatus.html#s35s0">SUCCESS_ERROR</a> = 0,                                  <span class="comment">// Function returned succesfully</span>
     47 00061             <a class="code" href="classOsclProcStatus.html#s35s1">OTHER_ERROR</a>,                                                <span class="comment">// Function returned some error</span>
     48 00062             <a class="code" href="classOsclProcStatus.html#s35s2">TOO_MANY_THREADS_ERROR</a>,                         <span class="comment">// Cannot create another thread</span>
     49 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>
     50 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>
     51 00065             <a class="code" href="classOsclProcStatus.html#s35s5">INVALID_THREAD_ID_ERROR</a>,                    <span class="comment">// Invalid thread identifier</span>
     52 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>
     53 00067             <a class="code" href="classOsclProcStatus.html#s35s7">OUTOFMEMORY_ERROR</a>,                                  <span class="comment">// Not enough storage is available to complete this operation</span>
     54 00068             <a class="code" href="classOsclProcStatus.html#s35s8">NOT_ENOUGH_RESOURCES_ERROR</a>,         <span class="comment">// Not Enough resources available</span>
     55 00069             <a class="code" href="classOsclProcStatus.html#s35s9">THREAD_1_INACTIVE_ERROR</a>,            <span class="comment">// The signal handler cannot be set</span>
     56 00070             <a class="code" href="classOsclProcStatus.html#s35s10">ALREADY_SUSPENDED_ERROR</a>,            <span class="comment">// Thread is already suspended</span>
     57 00071             <a class="code" href="classOsclProcStatus.html#s35s11">NOT_SUSPENDED_ERROR</a>,                <span class="comment">// Thread cannot be suspended</span>
     58 00072             <a class="code" href="classOsclProcStatus.html#s35s12">INVALID_THREAD_ERROR</a>,               <span class="comment">// Referring to invalid thread</span>
     59 00073             <a class="code" href="classOsclProcStatus.html#s35s13">INVALID_PARAM_ERROR</a>,                <span class="comment">// Invalid parameter passed in the API</span>
     60 00074             <a class="code" href="classOsclProcStatus.html#s35s14">NO_PERMISSION_ERROR</a>,                <span class="comment">// Operation not permitted</span>
     61 00075             <a class="code" href="classOsclProcStatus.html#s35s15">INVALID_PRIORITY_ERROR</a>,             <span class="comment">// Priority is not a valid OSCL priority</span>
     62 00076             <a class="code" href="classOsclProcStatus.html#s35s16">PSHARED_NOT_ZERO_ERROR</a>,             <span class="comment">// Trying to create global semaphore</span>
     63 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>
     64 00078             <a class="code" href="classOsclProcStatus.html#s35s18">THREAD_BLOCK_ERROR</a>,                 <span class="comment">// Thread is blocked</span>
     65 00079             <a class="code" href="classOsclProcStatus.html#s35s19">EXCEED_MAX_SEM_COUNT_ERROR</a>,         <span class="comment">// Out of range of semaphore count</span>
     66 00080             <a class="code" href="classOsclProcStatus.html#s35s20">INVALID_HANDLE_ERROR</a>,               <span class="comment">// Invalid handle</span>
     67 00081             <a class="code" href="classOsclProcStatus.html#s35s21">INVALID_OPERATION_ERROR</a>,            <span class="comment">// Invalid operation</span>
     68 00082             <a class="code" href="classOsclProcStatus.html#s35s22">INVALID_FUNCTION_ERROR</a>,
     69 00083             <a class="code" href="classOsclProcStatus.html#s35s23">INVALID_ACCESS_ERROR</a>,
     70 00084             <a class="code" href="classOsclProcStatus.html#s35s24">INVALID_ARGUMENT_ERROR</a>,
     71 00085             <a class="code" href="classOsclProcStatus.html#s35s25">SYSTEM_RESOURCES_UNAVAILABLE_ERROR</a>,
     72 00086             <a class="code" href="classOsclProcStatus.html#s35s26">INVALID_POINTER_ERROR</a>,
     73 00087             <a class="code" href="classOsclProcStatus.html#s35s27">RELOCK_MUTEX_ERROR</a>,
     74 00088             <a class="code" href="classOsclProcStatus.html#s35s28">THREAD_NOT_OWN_MUTEX_ERROR</a>,
     75 00089             <a class="code" href="classOsclProcStatus.html#s35s29">MUTEX_LOCKED_ERROR</a>,
     76 00090             <a class="code" href="classOsclProcStatus.html#s35s30">WAIT_ABANDONED_ERROR</a>,<span class="comment">//thread terminated while waiting</span>
     77 00091             <a class="code" href="classOsclProcStatus.html#s35s31">WAIT_TIMEOUT_ERROR</a>, <span class="comment">//timed wait expired without acquiring</span>
     78 00092             <a class="code" href="classOsclProcStatus.html#s35s32">SEM_NOT_SIGNALED_ERROR</a>, <span class="comment">//trywait returned without acquiring</span>
     79 00093             <a class="code" href="classOsclProcStatus.html#s35s33">PSHARED_ATTRIBUTE_SETTING_ERROR</a>,   <span class="comment">// Error at setting pthread attributes</span>
     80 00094             <a class="code" href="classOsclProcStatus.html#s35s34">NOT_IMPLEMENTED</a> <span class="comment">//function not implemented on this platform.</span>
     81 00095         } ;
     82 00096 
     83 00097 
     84 00098 
     85 00099 };
     86 00100 
     87 00101 
     88 00102 
     89 00103 <span class="preprocessor">#endif</span>
     90 00104 <span class="preprocessor"></span>
     91 </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
     92 <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
     93 </small></address>
     94 </body>
     95 </html>
     96