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_scheduler_threadcontext.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>oscl_scheduler_threadcontext.h</h1><a href="oscl__scheduler__threadcontext_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 1000012 <span class="preprocessor">#ifndef OSCL_SCHEDULER_THREAD_CONTEXT_H_INCLUDED</span> 1100013 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_SCHEDULER_THREAD_CONTEXT_H_INCLUDED</span> 1200014 <span class="preprocessor"></span> 1300015 <span class="preprocessor">#ifndef OSCL_AOSTATUS_H_INCLUDED</span> 1400016 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__aostatus_8h.html">oscl_aostatus.h</a>"</span> 1500017 <span class="preprocessor">#endif</span> 1600018 <span class="preprocessor"></span> 1700019 <span class="preprocessor">#ifndef OSCL_DOUBLE_LIST_H_INCLUDED</span> 1800020 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__double__list_8h.html">oscl_double_list.h</a>"</span> 1900021 <span class="preprocessor">#endif</span> 2000022 <span class="preprocessor"></span> 2100023 <span class="preprocessor">#ifndef OSCL_MUTEX_H_INCLUDED</span> 2200024 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__mutex_8h.html">oscl_mutex.h</a>"</span> 2300025 <span class="preprocessor">#endif</span> 2400026 <span class="preprocessor"></span> 25<a name="l00030"></a><a class="code" href="group__osclproc.html#a20">00030</a> <span class="keyword">enum</span> <a class="code" href="group__osclproc.html#a20">TPVThreadContext</a> 2600031 { 2700032 <a class="code" href="group__osclproc.html#a20a0">EPVThreadContext_InThread</a> <span class="comment">//context is in-thread</span> 2800033 , <a class="code" href="group__osclproc.html#a20a1">EPVThreadContext_OsclThread</a> <span class="comment">//some other thread that has Oscl initialized</span> 2900034 , <a class="code" href="group__osclproc.html#a20a2">EPVThreadContext_NonOsclThread</a> <span class="comment">//some thread that does not have Oscl initialized</span> 3000035 , <a class="code" href="group__osclproc.html#a20a3">EPVThreadContext_Undetermined</a> 3100036 }; 3200037 3300043 <span class="keyword">class </span><a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a>; 3400044 <span class="keyword">class </span><a class="code" href="classPVActiveBase.html">PVActiveBase</a>; 3500045 <span class="keyword">class </span>OsclBrewThreadYield; 36<a name="l00046"></a><a class="code" href="classPVThreadContext.html">00046</a> <span class="keyword">class </span><a class="code" href="classPVThreadContext.html">PVThreadContext</a> 3700047 { 3800048 <span class="keyword">public</span>: 3900049 4000050 OSCL_IMPORT_REF <a class="code" href="classPVThreadContext.html#a0">PVThreadContext</a>(); 4100051 OSCL_IMPORT_REF <a class="code" href="classPVThreadContext.html#a1">~PVThreadContext</a>(); 4200055 OSCL_IMPORT_REF <span class="keywordtype">bool</span> <a class="code" href="classPVThreadContext.html#a2">IsSameThreadContext</a>(); 4300056 4400061 OSCL_IMPORT_REF <span class="keyword">static</span> uint32 <a class="code" href="classPVThreadContext.html#d0">Id</a>(); 4500062 4600066 OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classPVThreadContext.html#a3">EnterThreadContext</a>(); 4700067 OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classPVThreadContext.html#a4">ExitThreadContext</a>(); 4800068 4900074 OSCL_IMPORT_REF <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classPVThreadContext.html#d1">ThreadHasScheduler</a>(); 5000075 5100076 <span class="keyword">private</span>: 5200077 5300082 <span class="keyword">static</span> <span class="keywordtype">void</span> LeaveIfWrongThread(<a class="code" href="classPVThreadContext.html">PVThreadContext</a> &a); 5400083 5500084 5600085 <span class="keywordtype">bool</span> iOpen; 5700086 5800090 <span class="keywordtype">void</span> PendComplete(<a class="code" href="classPVActiveBase.html">PVActiveBase</a>*, int32 aReason, <a class="code" href="group__osclproc.html#a20">TPVThreadContext</a> aCallingContext); 5900091 6000092 6100093 <a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a> *iScheduler; 6200094 6300098 TOsclThreadId iThreadId; 6400099 65<a name="l00100"></a><a class="code" href="classPVThreadContext.html#l0">00100</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPVActiveBase.html">PVActiveBase</a>; 66<a name="l00101"></a><a class="code" href="classPVThreadContext.html#l1">00101</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclActiveObject.html">OsclActiveObject</a>; 67<a name="l00102"></a><a class="code" href="classPVThreadContext.html#l2">00102</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclTimerObject.html">OsclTimerObject</a>; 68<a name="l00103"></a><a class="code" href="classPVThreadContext.html#l3">00103</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclExecScheduler.html">OsclExecScheduler</a>; 69<a name="l00104"></a><a class="code" href="classPVThreadContext.html#l4">00104</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPVThreadContext.html#l4">OsclCoeActiveScheduler</a>; 70<a name="l00105"></a><a class="code" href="classPVThreadContext.html#l5">00105</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a>; 71<a name="l00106"></a><a class="code" href="classPVThreadContext.html#l6">00106</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclExecSchedulerBase.html">OsclExecSchedulerBase</a>; 72<a name="l00107"></a><a class="code" href="classPVThreadContext.html#l7">00107</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPVThreadContext.html#l7">OsclCoeActiveSchedulerBase</a>; 7300108 }; 7400109 7500110 7600111 7700112 7800113 <span class="preprocessor">#endif //</span> 7900114 <span class="preprocessor"></span> 8000115 81</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 82<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 83</small></address> 84</body> 85</html> 86