From 686d7a4712d48b0727e7526e7051989bb60c085d Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 19 May 2015 11:45:47 +0200 Subject: [PATCH] Backed out changeset e513640d9995 (bug 1151672) for breaking ics emulator debug tests on a CLOSED TREE --- image/DecodePool.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/image/DecodePool.cpp b/image/DecodePool.cpp index d5ac056556da..5e53350ae311 100644 --- a/image/DecodePool.cpp +++ b/image/DecodePool.cpp @@ -237,6 +237,10 @@ public: return work; } +#ifdef MOZ_NUWA_PROCESS + nsThreadManager::get()->SetThreadIdle(nullptr); +#endif // MOZ_NUWA_PROCESS + // Nothing to do; block until some work is available. mMonitor.Wait(); } while (true); @@ -252,6 +256,10 @@ private: work.mDecoder = aQueue.ElementAt(0); aQueue.RemoveElementAt(0); +#ifdef MOZ_NUWA_PROCESS + nsThreadManager::get()->SetThreadWorking(); +#endif // MOZ_NUWA_PROCESS + return work; }