Bug 1402824 - Add missing includes in CooperativeThreadPool to fix non-unified build. r=billm draft
authorPhilippe Normand <philn@igalia.com>
Mon, 25 Sep 2017 10:37:31 +0100
changeset 670434 57bbdb4f0d7ae0789dfc095fd4b6c99ad780f1ad
parent 670433 f0065f0d326af069dc6c8a255fefbc0d2e2e9fe9
child 670435 06c71dfada5e26725d7771284a9f400bf7b5fdd8
push id81629
push userbmo:cpearce@mozilla.com
push dateTue, 26 Sep 2017 12:03:30 +0000
reviewersbillm
bugs1402824
milestone58.0a1
Bug 1402824 - Add missing includes in CooperativeThreadPool to fix non-unified build. r=billm nsCOMPtr and nsThreadPoolNaming types were used without prior declaration. MozReview-Commit-ID: Gt7gksujs13
xpcom/threads/CooperativeThreadPool.h
--- a/xpcom/threads/CooperativeThreadPool.h
+++ b/xpcom/threads/CooperativeThreadPool.h
@@ -5,18 +5,21 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef mozilla_CooperativeThreadPool_h
 #define mozilla_CooperativeThreadPool_h
 
 #include "mozilla/Array.h"
 #include "mozilla/CondVar.h"
 #include "mozilla/Mutex.h"
+#include "mozilla/ThreadLocal.h"
 #include "mozilla/UniquePtr.h"
 #include "mozilla/Variant.h"
+#include "nsCOMPtr.h"
+#include "nsThreadUtils.h"
 #include "prthread.h"
 
 // Windows silliness. winbase.h defines an empty no-argument Yield macro.
 #undef Yield
 
 class nsIEventTarget;
 
 namespace mozilla {