blob: 1334f69de2c02209944a64b0c23325165c747b21 [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_scheduler_threadcontext.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_scheduler_threadcontext.h</h1><a href="oscl__scheduler__threadcontext_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
00012 <span class="preprocessor">#ifndef OSCL_SCHEDULER_THREAD_CONTEXT_H_INCLUDED</span>
00013 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_SCHEDULER_THREAD_CONTEXT_H_INCLUDED</span>
00014 <span class="preprocessor"></span>
00015 <span class="preprocessor">#ifndef OSCL_AOSTATUS_H_INCLUDED</span>
00016 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__aostatus_8h.html">oscl_aostatus.h</a>"</span>
00017 <span class="preprocessor">#endif</span>
00018 <span class="preprocessor"></span>
00019 <span class="preprocessor">#ifndef OSCL_DOUBLE_LIST_H_INCLUDED</span>
00020 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__double__list_8h.html">oscl_double_list.h</a>"</span>
00021 <span class="preprocessor">#endif</span>
00022 <span class="preprocessor"></span>
00023 <span class="preprocessor">#ifndef OSCL_MUTEX_H_INCLUDED</span>
00024 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__mutex_8h.html">oscl_mutex.h</a>"</span>
00025 <span class="preprocessor">#endif</span>
00026 <span class="preprocessor"></span>
<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>
00031 {
00032 <a class="code" href="group__osclproc.html#a20a0">EPVThreadContext_InThread</a> <span class="comment">//context is in-thread</span>
00033 , <a class="code" href="group__osclproc.html#a20a1">EPVThreadContext_OsclThread</a> <span class="comment">//some other thread that has Oscl initialized</span>
00034 , <a class="code" href="group__osclproc.html#a20a2">EPVThreadContext_NonOsclThread</a> <span class="comment">//some thread that does not have Oscl initialized</span>
00035 , <a class="code" href="group__osclproc.html#a20a3">EPVThreadContext_Undetermined</a>
00036 };
00037
00043 <span class="keyword">class </span><a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a>;
00044 <span class="keyword">class </span><a class="code" href="classPVActiveBase.html">PVActiveBase</a>;
00045 <span class="keyword">class </span>OsclBrewThreadYield;
<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>
00047 {
00048 <span class="keyword">public</span>:
00049
00050 OSCL_IMPORT_REF <a class="code" href="classPVThreadContext.html#a0">PVThreadContext</a>();
00051 OSCL_IMPORT_REF <a class="code" href="classPVThreadContext.html#a1">~PVThreadContext</a>();
00055 OSCL_IMPORT_REF <span class="keywordtype">bool</span> <a class="code" href="classPVThreadContext.html#a2">IsSameThreadContext</a>();
00056
00061 OSCL_IMPORT_REF <span class="keyword">static</span> uint32 <a class="code" href="classPVThreadContext.html#d0">Id</a>();
00062
00066 OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classPVThreadContext.html#a3">EnterThreadContext</a>();
00067 OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classPVThreadContext.html#a4">ExitThreadContext</a>();
00068
00074 OSCL_IMPORT_REF <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classPVThreadContext.html#d1">ThreadHasScheduler</a>();
00075
00076 <span class="keyword">private</span>:
00077
00082 <span class="keyword">static</span> <span class="keywordtype">void</span> LeaveIfWrongThread(<a class="code" href="classPVThreadContext.html">PVThreadContext</a> &amp;a);
00083
00084
00085 <span class="keywordtype">bool</span> iOpen;
00086
00090 <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);
00091
00092
00093 <a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a> *iScheduler;
00094
00098 TOsclThreadId iThreadId;
00099
<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>;
<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>;
<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>;
<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>;
<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>;
<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>;
<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>;
<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>;
00108 };
00109
00110
00111
00112
00113 <span class="preprocessor">#endif //</span>
00114 <span class="preprocessor"></span>
00115
</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>