Symbian-Developers
The Official Developers Section => Symbian Software Development Discussions => The Developers Section => Symbian Java/C++ Application Development => Topic started by: Allstar12345 on November 30, 2013, 01:31:38 am
-
Here is how to change the process priority of your Symbian Application.
Libs required (for Qt usage): -lavkon -leikcore- lcone
Includes: #include <eikenv.h>
#include <eikappui.h>
#include <aknenv.h>
#include <aknappui.h>
Now the rest: CEikonEnv::Static()->WsSession().ComputeMode(RWsSession::EPriorityControlDisabled);
RProcess pMyApp;
pMyApp.SetPriority(EPriorityHigh);
Obviously if you change the RProcess name from pMyApp remember to change it on the next line.
-
looks intresting :)
Will try it later, but I think not need all the headers and libaries are needed.
-
Probably won't need appui headers, they are for CaKnppUi.
-
exactly :P
and if you include a Avkon class (like aknappui.h) you don't have to include the related cone or uikon classes, because avkon itself already includes uikon and cone classes.
-
I know, I was using those headers on something seperate :P
-
I know, I was using those headers on something seperate :P
-
A easier way is to add this line in .pro file:
symbian:MMP_RULES += "EPOCPROCESSPRIORITY windowserver"
then you needn't add any code in .pro\.cpp
"windowserver" can be changed to background, foreground, high, windowserver, fileserver, realtimeserver or supervisor.
-
A easier way is to add this line in .pro file:
symbian:MMP_RULES += "EPOCPROCESSPRIORITY windowserver"
then you needn't add any code in .pro\.cpp
"windowserver" can be changed to background, foreground, high, windowserver, fileserver, realtimeserver or supervisor.
Is there any documentation about this so i can understand it more?
-
A easier way is to add this line in .pro file:
symbian:MMP_RULES += "EPOCPROCESSPRIORITY windowserver"
then you needn't add any code in .pro\.cpp
"windowserver" can be changed to background, foreground, high, windowserver, fileserver, realtimeserver or supervisor.
Ah, good one.
-
Is there any documentation about this so i can understand it more?
Google -> http://docs.huihoo.com/symbian/s60-5th-edition-cpp-developers-library-v2.1/GUID-35228542-8C95-4849-A73F-2B4F082F0C44/sdk/doc_source/ToolsAndUtilities94/Build-ref/Mmp-ref/epocprocesspriority.html
and its mentioned in most Symbian C++ books
-
Google -> http://docs.huihoo.com/symbian/s60-5th-edition-cpp-developers-library-v2.1/GUID-35228542-8C95-4849-A73F-2B4F082F0C44/sdk/doc_source/ToolsAndUtilities94/Build-ref/Mmp-ref/epocprocesspriority.html
and its mentioned in most Symbian C++ books
Thanks for the link.