[tor-commits] [tor-browser/tor-browser-52.0.2esr-7.0-2] Bug 1336527 Define RegisterIdlePeriod r=baku

gk at torproject.org gk at torproject.org
Wed Apr 5 20:00:21 UTC 2017


commit a6a430bf6393f51a778b8dfe19103ae708bfcc5c
Author: Tom Ritter <tom at mozilla.com>
Date:   Fri Feb 17 13:29:12 2017 -0600

    Bug 1336527 Define RegisterIdlePeriod r=baku
    
    MozReview-Commit-ID: A41UJ6OHvP7
    
    --HG--
    extra : rebase_source : 0191c1bbece94bb9dabbf2daf56351a624efa481
---
 dom/workers/WorkerThread.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dom/workers/WorkerThread.h b/dom/workers/WorkerThread.h
index d1df133..f128702 100644
--- a/dom/workers/WorkerThread.h
+++ b/dom/workers/WorkerThread.h
@@ -77,6 +77,14 @@ public:
   uint32_t
   RecursionDepth(const WorkerThreadFriendKey& aKey) const;
 
+  // Required for MinGW build #1336527 to handle compiler bug:
+  // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79582
+  NS_IMETHOD
+  RegisterIdlePeriod(already_AddRefed<nsIIdlePeriod> aIdlePeriod) override
+  {
+    return nsThread::RegisterIdlePeriod(already_AddRefed<nsIIdlePeriod>(aIdlePeriod.take()));
+  }
+
   NS_DECL_ISUPPORTS_INHERITED
 
 private:





More information about the tor-commits mailing list