set some threads to THREAD_PRIORITY_LOW
This commit is contained in:
parent
609213fb57
commit
5778a5316c
@ -504,7 +504,7 @@ void ImProcCoordinator::stopProcessing () {
|
||||
|
||||
void ImProcCoordinator::startProcessing () {
|
||||
|
||||
#undef THREAD_PRIORITY_NORMAL
|
||||
#undef THREAD_PRIORITY_LOW
|
||||
|
||||
if (!destroying) {
|
||||
updaterThreadStart.lock ();
|
||||
@ -512,7 +512,7 @@ void ImProcCoordinator::startProcessing () {
|
||||
thread = NULL;
|
||||
updaterRunning = true;
|
||||
updaterThreadStart.unlock ();
|
||||
thread = Glib::Thread::create(sigc::mem_fun(*this, &ImProcCoordinator::process), 0, false, true, Glib::THREAD_PRIORITY_NORMAL);
|
||||
thread = Glib::Thread::create(sigc::mem_fun(*this, &ImProcCoordinator::process), 0, false, true, Glib::THREAD_PRIORITY_LOW);
|
||||
}
|
||||
else
|
||||
updaterThreadStart.unlock ();
|
||||
|
@ -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 ();
|
||||
|
@ -268,7 +268,7 @@ void CropHandler::update () {
|
||||
// crop->setWindow (cropX, cropY, cropW, cropH, zoom>=1000 ? 1 : zoom); --> we use the "getWindow" hook instead of setting the size before
|
||||
crop->setListener (this);
|
||||
cropPixbuf.clear ();
|
||||
Glib::Thread::create(sigc::mem_fun(*crop, &DetailedCrop::fullUpdate), 0, false, true, Glib::THREAD_PRIORITY_NORMAL);
|
||||
Glib::Thread::create(sigc::mem_fun(*crop, &DetailedCrop::fullUpdate), 0, false, true, Glib::THREAD_PRIORITY_LOW);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user