set some threads to THREAD_PRIORITY_LOW

This commit is contained in:
askv
2010-09-09 23:49:24 -07:00
parent 609213fb57
commit 5778a5316c
4 changed files with 6 additions and 6 deletions

View File

@@ -54,13 +54,13 @@ ProcParams* Updater::getParams () {
void Updater::startProcessing () {
#undef THREAD_PRIORITY_NORMAL
#undef THREAD_PRIORITY_LOW
tstart.lock ();
if (ipc && !running) {
running = true;
tstart.unlock ();
Glib::Thread::create(sigc::mem_fun(*this, &Updater::process), 0, false, true, Glib::THREAD_PRIORITY_NORMAL);
Glib::Thread::create(sigc::mem_fun(*this, &Updater::process), 0, false, true, Glib::THREAD_PRIORITY_LOW);
}
else
tstart.unlock ();