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>osclconfig_proc_unix_common.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> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> 9<hr><h1>osclconfig_proc_unix_common.h</h1><a href="osclconfig__proc__unix__common_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span> 1000002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1100003 1200004 <span class="comment">// O S C L C O N F I G _ P R O C ( P L A T F O R M C O N F I G I N F O )</span> 1300005 1400006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1500007 1600008 1700014 <span class="preprocessor">#ifndef OSCLCONFIG_PROC_UNIX_COMMON_H_INCLUDED</span> 1800015 <span class="preprocessor"></span><span class="preprocessor">#define OSCLCONFIG_PROC_UNIX_COMMON_H_INCLUDED</span> 1900016 <span class="preprocessor"></span> 20<a name="l00017"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a0">00017</a> <span class="preprocessor">#define OSCL_HAS_SYMBIAN_SCHEDULER 0</span> 2100018 <span class="preprocessor"></span> 22<a name="l00019"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a1">00019</a> <span class="preprocessor">#define OSCL_HAS_THREAD_SUPPORT 1</span> 23<a name="l00020"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a2">00020</a> <span class="preprocessor"></span><span class="preprocessor">#define OSCL_HAS_NON_PREEMPTIVE_THREAD_SUPPORT 0</span> 2400021 <span class="preprocessor"></span> 2500022 <span class="comment">//semaphore with advanced realtime features incl. timed wait.</span> 26<a name="l00023"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a3">00023</a> <span class="preprocessor">#define OSCL_HAS_SEM_TIMEDWAIT_SUPPORT 1</span> 2700024 <span class="preprocessor"></span><span class="preprocessor">#include <time.h></span> 2800025 <span class="preprocessor">#include <semaphore.h></span> 2900026 3000027 <span class="comment">//pthreads</span> 31<a name="l00028"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a4">00028</a> <span class="preprocessor">#define OSCL_HAS_PTHREAD_SUPPORT 1</span> 3200029 <span class="preprocessor"></span><span class="preprocessor">#include <pthread.h></span> 3300030 <span class="preprocessor">#include <errno.h></span> 3400031 3500032 <span class="comment">// threads, mutex, semaphores</span> 36<a name="l00033"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a6">00033</a> <span class="keyword">typedef</span> pthread_t <a class="code" href="osclconfig__proc__unix__common_8h.html#a6">TOsclThreadId</a>; 37<a name="l00034"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a7">00034</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span>* <a class="code" href="osclconfig__proc__unix__common_8h.html#a7">TOsclThreadFuncArg</a>; 38<a name="l00035"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a8">00035</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span>* <a class="code" href="osclconfig__proc__unix__common_8h.html#a8">TOsclThreadFuncRet</a>; 39<a name="l00036"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a5">00036</a> <span class="preprocessor">#define OSCL_THREAD_DECL</span> 40<a name="l00037"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a9">00037</a> <span class="preprocessor"></span><span class="keyword">typedef</span> pthread_t <a class="code" href="osclconfig__proc__unix__common_8h.html#a9">TOsclThreadObject</a>; 41<a name="l00038"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a10">00038</a> <span class="keyword">typedef</span> pthread_mutex_t <a class="code" href="osclconfig__proc__unix__common_8h.html#a10">TOsclMutexObject</a>; 42<a name="l00039"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a11">00039</a> <span class="keyword">typedef</span> sem_t <a class="code" href="osclconfig__proc__unix__common_8h.html#a11">TOsclSemaphoreObject</a>; 43<a name="l00040"></a><a class="code" href="osclconfig__proc__unix__common_8h.html#a12">00040</a> <span class="keyword">typedef</span> pthread_cond_t <a class="code" href="osclconfig__proc__unix__common_8h.html#a12">TOsclConditionObject</a>; 4400041 4500042 <span class="preprocessor">#endif</span> 46</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 47<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 48</small></address> 49</body> 50</html> 51