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

@@ -88,7 +88,7 @@ void ThumbImageUpdater::process_ () {
Job current = *i;
jqueue.erase (i);
if (current.listener)
threadPool[threads] = Glib::Thread::create(sigc::bind(sigc::mem_fun(*this, &ThumbImageUpdater::processJob), current), 0, true, true, Glib::THREAD_PRIORITY_NORMAL);
threadPool[threads] = Glib::Thread::create(sigc::bind(sigc::mem_fun(*this, &ThumbImageUpdater::processJob), current), 0, true, true, Glib::THREAD_PRIORITY_LOW);
else
threadPool[threads] = NULL;
}