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:
@@ -59,8 +59,6 @@ LauncherApp::LauncherApp()
|
|||||||
, m_initialized(false)
|
, m_initialized(false)
|
||||||
, m_downloadWindow(0)
|
, m_downloadWindow(0)
|
||||||
{
|
{
|
||||||
// Since we will essentially run the GUI...
|
|
||||||
set_thread_priority(Thread(), B_DISPLAY_PRIORITY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LauncherApp::~LauncherApp()
|
LauncherApp::~LauncherApp()
|
||||||
@@ -92,6 +90,9 @@ void LauncherApp::ArgvReceived(int32 argc, char** argv)
|
|||||||
|
|
||||||
void LauncherApp::ReadyToRun()
|
void LauncherApp::ReadyToRun()
|
||||||
{
|
{
|
||||||
|
// Since we will essentially run the GUI...
|
||||||
|
set_thread_priority(Thread(), B_DISPLAY_PRIORITY);
|
||||||
|
|
||||||
BWebPage::InitializeOnce();
|
BWebPage::InitializeOnce();
|
||||||
BWebPage::SetCacheModel(B_WEBKIT_CACHE_MODEL_WEB_BROWSER);
|
BWebPage::SetCacheModel(B_WEBKIT_CACHE_MODEL_WEB_BROWSER);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user