Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Assigning priority value EPriorityRealTime

There is a priority value which has a special meaning; this is:

This is an enumerator of the TThreadPriority enumeration, defined in e32std.h. This priority value is assigned using RThread::SetPriority().

This value is treated differently to the other enumerated values of TThreadPriority.

Setting the priority of a thread to EPriorityRealTime causes the absolute priority of the thread to be set to TProcessPriority::EPriorityRealTimeServer. This absolute priority value is just less than the absolute priority of the Kernel itself.

The following code fragment gives the thread mythread an absolute priority value of TProcessPriority::EPriorityRealTimeServer.

RThread mythread;
...
mythread.SetPriority(EPriorityRealTime);
...