From 51fd0898cdef6029c73f2e53b7e8ca858b5b6a22 Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Sat, 18 Sep 2010 22:40:29 -0700 Subject: [PATCH] fix if statement in BatchQueueEntryUpdater::process --- rtgui/bqentryupdater.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rtgui/bqentryupdater.cc b/rtgui/bqentryupdater.cc index 2f4a42170..3ad75b669 100644 --- a/rtgui/bqentryupdater.cc +++ b/rtgui/bqentryupdater.cc @@ -57,9 +57,10 @@ void BatchQueueEntryUpdater::add (guint8* oimg, int ow, int oh, int newh, BQEntr void BatchQueueEntryUpdater::process () { - if (stopped) - #undef THREAD_PRIORITY_NORMAL + if (stopped){ + #undef THREAD_PRIORITY_LOW thread = Glib::Thread::create(sigc::mem_fun(*this, &BatchQueueEntryUpdater::process_), (unsigned long int)0, true, true, Glib::THREAD_PRIORITY_LOW); + } } void BatchQueueEntryUpdater::process_ () { @@ -93,7 +94,7 @@ void BatchQueueEntryUpdater::stop () { tostop = true; Glib::Thread::self()->yield(); if (!stopped) - thread->join (); + thread->join (); gdk_threads_enter(); }