Place the thread priority tweak somewhere where it actually works. This makes

HaikuLauncher totally usable under heavy system load.


git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@174 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-02-22 13:36:46 +00:00
parent 0bcb05f98d
commit e7bd43d9ca
1 changed files with 3 additions and 2 deletions

View File

@ -59,8 +59,6 @@ LauncherApp::LauncherApp()
, m_initialized(false)
, m_downloadWindow(0)
{
// Since we will essentially run the GUI...
set_thread_priority(Thread(), B_DISPLAY_PRIORITY);
}
LauncherApp::~LauncherApp()
@ -92,6 +90,9 @@ void LauncherApp::ArgvReceived(int32 argc, char** argv)
void LauncherApp::ReadyToRun()
{
// Since we will essentially run the GUI...
set_thread_priority(Thread(), B_DISPLAY_PRIORITY);
BWebPage::InitializeOnce();
BWebPage::SetCacheModel(B_WEBKIT_CACHE_MODEL_WEB_BROWSER);