• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.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_scheduler.h</h1><a href="oscl__scheduler_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
1000013 <span class="preprocessor">#ifndef OSCL_SCHEDULER_H_INCLUDED</span>
1100014 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_SCHEDULER_H_INCLUDED</span>
1200015 <span class="preprocessor"></span>
1300016 <span class="preprocessor">#ifndef OSCL_SCHEDULER_TYPES_H_INCLUDED</span>
1400017 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__scheduler__types_8h.html">oscl_scheduler_types.h</a>"</span>
1500018 <span class="preprocessor">#endif</span>
1600019 <span class="preprocessor"></span>
1700020 <span class="preprocessor">#ifndef OSCL_SCHEDULER_AO_H_INCLUDED</span>
1800021 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__scheduler__ao_8h.html">oscl_scheduler_ao.h</a>"</span>
1900022 <span class="preprocessor">#endif</span>
2000023 <span class="preprocessor"></span>
2100024 <span class="preprocessor">#ifndef OSCL_SCHEDULER_THREADCONTEXT_H_INCLUDED</span>
2200025 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__scheduler__threadcontext_8h.html">oscl_scheduler_threadcontext.h</a>"</span>
2300026 <span class="preprocessor">#endif</span>
2400027 <span class="preprocessor"></span>
2500028 <span class="preprocessor">#ifndef OSCL_MUTEX_H_INCLUDED</span>
2600029 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__mutex_8h.html">oscl_mutex.h</a>"</span>
2700030 <span class="preprocessor">#endif</span>
2800031 <span class="preprocessor"></span>
2900032 <span class="preprocessor">#ifndef OSCL_SEMAPHORE_H_INCLUDED</span>
3000033 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__semaphore_8h.html">oscl_semaphore.h</a>"</span>
3100034 <span class="preprocessor">#endif</span>
3200035 <span class="preprocessor"></span>
3300036 <span class="preprocessor">#ifndef OSCL_SCHEDULER_READYQ_H_INCLUDED</span>
3400037 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__scheduler__readyq_8h.html">oscl_scheduler_readyq.h</a>"</span>
3500038 <span class="preprocessor">#endif</span>
3600039 <span class="preprocessor"></span>
3700040 <span class="preprocessor">#ifndef OSCL_DEFALLOC_H_INCLUDED</span>
3800041 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__defalloc_8h.html">oscl_defalloc.h</a>"</span>
3900042 <span class="preprocessor">#endif</span>
4000043 <span class="preprocessor"></span>
4100044 <span class="preprocessor">#ifndef OSCL_MEM_H_INCLUDED</span>
4200045 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__mem_8h.html">oscl_mem.h</a>"</span>
4300046 <span class="preprocessor">#endif</span>
4400047 <span class="preprocessor"></span>
4500048 <span class="keyword">class </span><a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>;
4600049 <span class="keyword">class </span>OsclCoeActiveScheduler;
4700050
4800051
49<a name="l00055"></a><a class="code" href="classOsclScheduler.html">00055</a> <span class="keyword">class </span><a class="code" href="classOsclScheduler.html">OsclScheduler</a>
5000056 {
5100057     <span class="keyword">public</span>:
5200067         OSCL_IMPORT_REF <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classOsclScheduler.html#d0">Init</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> *alloc = <a class="code" href="group__osclbase.html#a81">NULL</a>, <span class="keywordtype">int</span> nreserve = 20);
5300068
5400069
5500074         OSCL_IMPORT_REF <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classOsclScheduler.html#d1">Cleanup</a>();
5600075 };
5700076
5800077
59<a name="l00082"></a><a class="code" href="group__osclproc.html#a9">00082</a> <span class="preprocessor">#define PVSCHEDNAMELEN 30</span>
6000083 <span class="preprocessor"></span>
6100084 <span class="keyword">class </span><a class="code" href="classPVSchedulerStopper.html">PVSchedulerStopper</a>;
6200085 <span class="keyword">class </span>PVJump;
6300086 <span class="keyword">class </span><a class="code" href="classPVLogger.html">PVLogger</a>;
6400087
65<a name="l00095"></a><a class="code" href="classOsclSchedulerObserver.html">00095</a> <span class="keyword">class </span><a class="code" href="classOsclSchedulerObserver.html">OsclSchedulerObserver</a>
6600096 {
6700097     <span class="keyword">public</span>:
6800107         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOsclSchedulerObserver.html#a0">OsclSchedulerTimerCallback</a>(<a class="code" href="group__osclbase.html#a25">OsclAny</a>* aContext, uint32 aDelayMsec) = 0;
6900108
7000118         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOsclSchedulerObserver.html#a1">OsclSchedulerReadyCallback</a>(<a class="code" href="group__osclbase.html#a25">OsclAny</a>* aContext) = 0;
7100119
72<a name="l00120"></a><a class="code" href="classOsclSchedulerObserver.html#a2">00120</a>         <span class="keyword">virtual</span> <a class="code" href="classOsclSchedulerObserver.html#a2">~OsclSchedulerObserver</a>() {}
7300121 };
7400122
7500123
7600124 <span class="comment">/*</span>
7700125 <span class="comment">** A common base class for variations of OsclExecScheduler</span>
7800126 <span class="comment">**/</span>
7900127
80<a name="l00128"></a><a class="code" href="classOsclExecSchedulerCommonBase.html">00128</a> <span class="keyword">class </span><a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a>
8100129 {
8200130     <span class="keyword">public</span>:
8300140         OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#a0">StartScheduler</a>(<a class="code" href="classOsclSemaphore.html">OsclSemaphore</a> *sem = <a class="code" href="group__osclbase.html#a81">NULL</a>);
8400141
8500146         OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#a1">StopScheduler</a>();
8600147
8700152         OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#a2">SuspendScheduler</a>();
8800153
8900158         OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#a3">ResumeScheduler</a>();
9000159
9100165         OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#a4">StartNativeScheduler</a>();
9200166
9300170         OSCL_IMPORT_REF <span class="keyword">static</span> <a class="code" href="classOsclNameString.html">OsclNameString&lt;PVSCHEDNAMELEN&gt;</a> *<a class="code" href="classOsclExecSchedulerCommonBase.html#d0">GetName</a>();
9400171
9500175         OSCL_IMPORT_REF <span class="keyword">static</span> uint32 <a class="code" href="classOsclExecSchedulerCommonBase.html#d1">GetId</a>();
9600176
9700177
9800178     <span class="keyword">protected</span>:
9900179         <span class="comment">/*</span>
10000180 <span class="comment">        static OsclExecScheduler *NewL(const char *name,Oscl_DefAlloc *a,int nreserve);</span>
10100181 <span class="comment">        */</span>
10200182         <span class="keyword">virtual</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b0">~OsclExecSchedulerCommonBase</a>();
10300183         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b1">InstallScheduler</a>();
10400184         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b2">UninstallScheduler</a>();
105<a name="l00185"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l0">00185</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclScheduler.html">OsclScheduler</a>;
10600186
10700187     <span class="keyword">protected</span>:
10800188         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b3">Error</a>(int32 anError) <span class="keyword">const</span>;
10900189
11000190     <span class="keyword">protected</span>:
11100191         <span class="keyword">static</span> <a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a>* <a class="code" href="classOsclExecSchedulerCommonBase.html#e0">GetScheduler</a>();
11200192         <span class="keyword">static</span> <a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a>* <a class="code" href="classOsclExecSchedulerCommonBase.html#e1">SetScheduler</a>(<a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a>*);
113<a name="l00193"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l1">00193</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPVThreadContext.html">PVThreadContext</a>;
114<a name="l00194"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l2">00194</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclExecSchedulerCommonBase.html#l2">OsclCoeActiveScheduler</a>;
11500195
11600196     <span class="keyword">protected</span>:
11700197         <a class="code" href="classOsclExecSchedulerCommonBase.html#b4">OsclExecSchedulerCommonBase</a>(<a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>*);
11800198         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b5">ConstructL</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span>);
11900199
12000200         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b6">BeginScheduling</a>(<span class="keywordtype">bool</span> blocking, <span class="keywordtype">bool</span> native);
12100201         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b7">EndScheduling</a>();
12200202
12300203         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b8">BlockingLoopL</a>();
12400204
125<a name="l00205"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n0">00205</a>         <span class="keywordtype">bool</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#n0">iBlockingMode</a>;<span class="comment">//current blocking mode setting.</span>
126<a name="l00206"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n1">00206</a>         <span class="keywordtype">bool</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#n1">iNativeMode</a>;<span class="comment">//current native mode setting.</span>
12700207
12800208         <span class="keywordtype">bool</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b9">IsStarted</a>();
12900209         <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b10">IsInstalled</a>();
13000210
13100211         <span class="comment">//Stopper AO is a special PV AO used to implement</span>
13200212         <span class="comment">//the StopScheduler and SuspendScheduler functions.</span>
133<a name="l00213"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n2">00213</a>         <a class="code" href="classPVSchedulerStopper.html">PVSchedulerStopper</a> *<a class="code" href="classOsclExecSchedulerCommonBase.html#n2">iStopper</a>;
134<a name="l00214"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n3">00214</a>         <a class="code" href="classOsclMutex.html">OsclNoYieldMutex</a> <a class="code" href="classOsclExecSchedulerCommonBase.html#n3">iStopperCrit</a>;
13500215
13600216         <span class="comment">//Scheduler thread context</span>
137<a name="l00217"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n4">00217</a>         <a class="code" href="classPVThreadContext.html">PVThreadContext</a> <a class="code" href="classOsclExecSchedulerCommonBase.html#n4">iThreadContext</a>;
13800218
13900219         <span class="comment">//Scheduler name</span>
140<a name="l00220"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n5">00220</a>         <a class="code" href="classOsclNameString.html">OsclNameString&lt;PVSCHEDNAMELEN&gt;</a> <a class="code" href="classOsclExecSchedulerCommonBase.html#n5">iName</a>;
14100221
14200222         <span class="comment">//For stop, suspend, and resume commands.</span>
143<a name="l00223"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n6">00223</a>         <span class="keywordtype">bool</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#n6">iDoStop</a>;
144<a name="l00224"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n7">00224</a>         <span class="keywordtype">bool</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#n7">iDoSuspend</a>;
145<a name="l00225"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n8">00225</a>         <span class="keywordtype">bool</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#n8">iSuspended</a>;
146<a name="l00226"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n9">00226</a>         <a class="code" href="classOsclSemaphore.html">OsclSemaphore</a> <a class="code" href="classOsclExecSchedulerCommonBase.html#n9">iResumeSem</a>;
14700227
148<a name="l00228"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n10">00228</a>         <a class="code" href="classOsclErrorTrapImp.html">OsclErrorTrapImp</a>* <a class="code" href="classOsclExecSchedulerCommonBase.html#n10">iErrorTrapImp</a>;
14900229
15000230         <span class="comment">//Ready AO queue.  The AOs in this queue are ready to run.</span>
151<a name="l00231"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n11">00231</a>         <a class="code" href="classOsclReadyQ.html">OsclReadyQ</a> <a class="code" href="classOsclExecSchedulerCommonBase.html#n11">iReadyQ</a>;
15200232
15300233         <span class="comment">//Pending Timer AO queue.  The AOs in this queue are OsclTimerObjects</span>
15400234         <span class="comment">//and have a timeout pending.</span>
155<a name="l00235"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n12">00235</a>         <a class="code" href="classOsclTimerQ.html">OsclTimerQ</a> <a class="code" href="classOsclExecSchedulerCommonBase.html#n12">iExecTimerQ</a>;
15600236         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b11">AddToExecTimerQ</a>(<a class="code" href="classPVActiveBase.html">PVActiveBase</a> *active, uint32);
15700237
15800238         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b12">PendComplete</a>(<a class="code" href="classPVActiveBase.html">PVActiveBase</a> *, int32 aReason, <a class="code" href="group__osclproc.html#a20">TPVThreadContext</a> aContext);
15900239         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b13">RequestCanceled</a>(<a class="code" href="classPVActiveBase.html">PVActiveBase</a>*);
16000240
16100241         <span class="comment">//Scheduling loop implementation.</span>
16200242         <a class="code" href="classPVActiveBase.html">PVActiveBase</a>* <a class="code" href="classOsclExecSchedulerCommonBase.html#b14">UpdateTimers</a>(uint32 &amp;aDelay);
16300243         <a class="code" href="classPVActiveBase.html">PVActiveBase</a>* <a class="code" href="classOsclExecSchedulerCommonBase.html#b15">UpdateTimersMsec</a>(uint32 &amp;aDelay);
16400244         <a class="code" href="classPVActiveBase.html">PVActiveBase</a>* <a class="code" href="classOsclExecSchedulerCommonBase.html#b16">WaitForReadyAO</a>();
16500245         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b17">CallRunExec</a>(<a class="code" href="classPVActiveBase.html">PVActiveBase</a>*);
16600246
167<a name="l00247"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#q0">00247</a>         <span class="keyword">static</span> <span class="keyword">const</span> uint32 <a class="code" href="classOsclExecSchedulerCommonBase.html#q0">iTimeCompareThreshold</a>;
168<a name="l00248"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l3">00248</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclTimerCompare.html">OsclTimerCompare</a>;
169<a name="l00249"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l4">00249</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclReadyQ.html">OsclReadyQ</a>;
17000250
171<a name="l00251"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l5">00251</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclError.html">OsclError</a>;
17200252
17300253
17400254
175<a name="l00255"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n13">00255</a>         uint32 <a class="code" href="classOsclExecSchedulerCommonBase.html#n13">iNumAOAdded</a>;<span class="comment">//for non-fair-scheduling sorts.</span>
17600256
17700257         <span class="comment">//For statistics</span>
17800258 <span class="preprocessor">#if (PV_SCHED_ENABLE_AO_STATS)</span>
179<a name="l00259"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n14">00259</a> <span class="preprocessor"></span>        <a class="code" href="classOsclDoubleList.html">OsclDoubleList&lt;PVActiveStats&gt;</a> <a class="code" href="classOsclExecSchedulerCommonBase.html#n14">iPVStatQ</a>;<span class="comment">//queue of all PV ExecObjs.</span>
180<a name="l00260"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#t5">00260</a>         <span class="keyword">enum</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#t5">TOtherExecStats</a>
18100261         {
18200262             <a class="code" href="classOsclExecSchedulerCommonBase.html#t5t0">EOtherExecStats_WaitTime</a> <span class="comment">//scheduler wait time</span>
18300263             , <a class="code" href="classOsclExecSchedulerCommonBase.html#t5t1">EOtherExecStats_QueueTime</a> <span class="comment">//scheduler queue operation time</span>
18400264             , <a class="code" href="classOsclExecSchedulerCommonBase.html#t5t2">EOtherExecStats_NativeOS</a> <span class="comment">//time in symbian native ExecObjs, not added by PV code (symbian only)</span>
18500265             , <a class="code" href="classOsclExecSchedulerCommonBase.html#t5t3">EOtherExecStats_ReleaseTime</a> <span class="comment">//thread release time (Brew only)</span>
18600266             , <a class="code" href="classOsclExecSchedulerCommonBase.html#t5t4">EOtherExecStats_Last</a>
18700267         };
188<a name="l00268"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n15">00268</a>         <a class="code" href="classPVActiveStats.html">PVActiveStats</a>* <a class="code" href="classOsclExecSchedulerCommonBase.html#n15">iOtherExecStats</a>[<a class="code" href="classOsclExecSchedulerCommonBase.html#t5t4">EOtherExecStats_Last</a>];<span class="comment">//placeholder for stats of all ExecObjs.</span>
18900269         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b18">ConstructStatQ</a>();
19000270         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b19">BeginStats</a>();
19100271         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b20">EndStats</a>();
19200272         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#e2">ShowStats</a>(<a class="code" href="classPVActiveStats.html">PVActiveStats</a> *active);
19300273         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#e3">ShowSummaryStats</a>(<a class="code" href="classPVActiveStats.html">PVActiveStats</a> *active, <a class="code" href="classPVLogger.html">PVLogger</a>*, <a class="code" href="group__osclbase.html#a30">int64</a>, <a class="code" href="group__osclbase.html#a30">int64</a>&amp;, <span class="keywordtype">float</span>&amp;);
19400274         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b21">CleanupStatQ</a>();
195<a name="l00275"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n16">00275</a>         uint8* <a class="code" href="classOsclExecSchedulerCommonBase.html#n16">iTotalTicksTemp</a>;
196<a name="l00276"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n17">00276</a>         <a class="code" href="group__osclbase.html#a30">int64</a> <a class="code" href="classOsclExecSchedulerCommonBase.html#n17">iGrandTotalTicks</a>;
197<a name="l00277"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n18">00277</a>         <span class="keywordtype">float</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#n18">iTotalPercent</a>;
198<a name="l00278"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l6">00278</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPVActiveStats.html">PVActiveStats</a>;
199<a name="l00279"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n19">00279</a>         uint32 <a class="code" href="classOsclExecSchedulerCommonBase.html#n19">iTime</a>;
200<a name="l00280"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n20">00280</a>         int32 <a class="code" href="classOsclExecSchedulerCommonBase.html#n20">iDelta</a>;
201<a name="l00281"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n21">00281</a>         <a class="code" href="classPVActiveStats.html">PVActiveStats</a>* <a class="code" href="classOsclExecSchedulerCommonBase.html#n21">iPVStats</a>;
20200282 <span class="preprocessor">#endif //PV_SCHED_ENABLE_AO_STATS</span>
20300283 <span class="preprocessor"></span>
20400284         <span class="comment">//Queue utils.</span>
20500285         <a class="code" href="classPVActiveBase.html">PVActiveBase</a> *<a class="code" href="classOsclExecSchedulerCommonBase.html#b22">FindPVBase</a>(<a class="code" href="classPVActiveBase.html">PVActiveBase</a> *active, <a class="code" href="classOsclDoubleList.html">OsclDoubleList&lt;PVActiveBase&gt;</a> &amp;);
20600286         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b23">CleanupExecQ</a>();
20700287         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b24">InitExecQ</a>(<span class="keywordtype">int</span>);
20800288
209<a name="l00289"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n22">00289</a>         <a class="code" href="classPVLogger.html">PVLogger</a> *<a class="code" href="classOsclExecSchedulerCommonBase.html#n22">iLogger</a>;
210<a name="l00290"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n23">00290</a>         <a class="code" href="classPVLogger.html">PVLogger</a>* <a class="code" href="classOsclExecSchedulerCommonBase.html#n23">iDebugLogger</a>;
21100291
21200292 <span class="preprocessor">#if(PV_SCHED_ENABLE_PERF_LOGGING)</span>
21300293 <span class="preprocessor"></span>        <span class="comment">//for perf logging</span>
214<a name="l00294"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n24">00294</a>         <span class="keywordtype">char</span>* <a class="code" href="classOsclExecSchedulerCommonBase.html#n24">iLogPerfIndentStr</a>;
215<a name="l00295"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n25">00295</a>         int32 <a class="code" href="classOsclExecSchedulerCommonBase.html#n25">iLogPerfIndentStrLen</a>;
216<a name="l00296"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n26">00296</a>         uint32 <a class="code" href="classOsclExecSchedulerCommonBase.html#n26">iLogPerfTotal</a>;
21700297         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b25">ResetLogPerf</a>();
21800298         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b26">IncLogPerf</a>(uint32);
21900299 <span class="preprocessor">#endif</span>
22000300 <span class="preprocessor"></span>
221<a name="l00301"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n27">00301</a>         <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> *<a class="code" href="classOsclExecSchedulerCommonBase.html#n27">iAlloc</a>;<span class="comment">//allocator for scheduler.</span>
222<a name="l00302"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#n28">00302</a>         <a class="code" href="classOsclMemAllocator.html">OsclMemAllocator</a> <a class="code" href="classOsclExecSchedulerCommonBase.html#n28">iDefAlloc</a>;<span class="comment">//default allocator</span>
22300303
224<a name="l00304"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l7">00304</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclActiveObject.html">OsclActiveObject</a>;
225<a name="l00305"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l8">00305</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclTimerObject.html">OsclTimerObject</a>;
226<a name="l00306"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l9">00306</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPVActiveBase.html">PVActiveBase</a>;
227<a name="l00307"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l10">00307</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPVSchedulerStopper.html">PVSchedulerStopper</a>;
22800308
22900309
230<a name="l00310"></a><a class="code" href="classOsclExecSchedulerCommonBase.html#l11">00310</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclExecScheduler.html">OsclExecScheduler</a>;
23100311 };
23200312
23300313 <span class="keyword">class </span><a class="code" href="classOsclErrorTrapImp.html">OsclErrorTrapImp</a>;
23400314
235<a name="l00315"></a><a class="code" href="classOsclExecScheduler.html">00315</a> <span class="keyword">class </span><a class="code" href="classOsclExecScheduler.html">OsclExecScheduler</a>: <span class="keyword">public</span> <a class="code" href="classOsclExecSchedulerCommonBase.html">OsclExecSchedulerCommonBase</a>
23600316             , <span class="keyword">public</span> <a class="code" href="classOsclExecSchedulerBase.html">OsclExecSchedulerBase</a>
23700317 {
23800318     <span class="keyword">public</span>:
23900323         OSCL_IMPORT_REF <span class="keyword">static</span> <a class="code" href="classOsclExecScheduler.html">OsclExecScheduler</a>* <a class="code" href="classOsclExecScheduler.html#d0">Current</a>();
24000324
24100347         OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classOsclExecScheduler.html#a0">RunSchedulerNonBlocking</a>(int32 aTargetCount, int32 &amp;aReady, uint32 &amp;aDelayMsec);
24200348
24300356         OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classOsclExecScheduler.html#a1">RegisterForCallback</a>(<a class="code" href="classOsclSchedulerObserver.html">OsclSchedulerObserver</a>* aCallback, <a class="code" href="group__osclbase.html#a25">OsclAny</a>* aCallbackContext);
24400357
24500358
24600359     <span class="keyword">private</span>:
24700360         <span class="keyword">static</span> <a class="code" href="classOsclExecScheduler.html">OsclExecScheduler</a> *NewL(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> *a, <span class="keywordtype">int</span> nreserve);
24800361         ~<a class="code" href="classOsclExecScheduler.html">OsclExecScheduler</a>();
249<a name="l00362"></a><a class="code" href="classOsclExecScheduler.html#l0">00362</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclScheduler.html">OsclScheduler</a>;
25000363
25100364
25200365         <a class="code" href="classOsclExecSchedulerCommonBase.html#l11">OsclExecScheduler</a>(<a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>*);
25300366         <span class="keywordtype">void</span> <a class="code" href="classOsclExecSchedulerCommonBase.html#b5">ConstructL</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span>);
25400367
25500368 };
25600369
25700370
258<a name="l00375"></a><a class="code" href="classPVSchedulerStopper.html">00375</a> <span class="keyword">class </span><a class="code" href="classPVSchedulerStopper.html">PVSchedulerStopper</a>: <span class="keyword">public</span> <a class="code" href="classOsclActiveObject.html">OsclActiveObject</a>
25900376 {
26000377     <span class="keyword">public</span>:
26100378         <a class="code" href="classPVSchedulerStopper.html#a0">PVSchedulerStopper</a>();
26200379         <a class="code" href="classPVSchedulerStopper.html#a1">~PVSchedulerStopper</a>();
26300380     <span class="keyword">private</span>:
26400381         <span class="keywordtype">void</span> <a class="code" href="classPVActiveBase.html#a4">Run</a>();
26500382 };
26600383
26700384
26800385 <span class="preprocessor">#endif</span>
26900386 <span class="preprocessor"></span>
27000387
271</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
272<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
273</small></address>
274</body>
275</html>
276