RT stuck in loop when pasting profile, Issue 2363

This commit is contained in:
Ingo
2014-05-04 18:21:09 +02:00
parent efbc1f65b1
commit b59b386b96

View File

@@ -865,8 +865,8 @@ void ImProcCoordinator::startProcessing () {
#undef THREAD_PRIORITY_NORMAL #undef THREAD_PRIORITY_NORMAL
if (!destroying) { if (!destroying) {
updaterThreadStart.lock ();
if (!updaterRunning) { if (!updaterRunning) {
updaterThreadStart.lock ();
thread = NULL; thread = NULL;
updaterRunning = true; updaterRunning = true;
updaterThreadStart.unlock (); updaterThreadStart.unlock ();
@@ -876,8 +876,6 @@ void ImProcCoordinator::startProcessing () {
thread = Glib::Thread::create(sigc::mem_fun(*this, &ImProcCoordinator::process), 0, true, true, Glib::THREAD_PRIORITY_NORMAL); thread = Glib::Thread::create(sigc::mem_fun(*this, &ImProcCoordinator::process), 0, true, true, Glib::THREAD_PRIORITY_NORMAL);
} }
else
updaterThreadStart.unlock ();
} }
} }