Bug 1395418 Revert a previous patch that disabled std::thread on MinGW because we didn't have it. Now we do. r=cpearce
authorTom Ritter <tom@mozilla.com>
Wed, 30 Aug 2017 20:31:01 -0500
changeset 428946 4f5afb7fe096fefc59c62c5dcfe95f95589645de
parent 428945 2b7ede324ce2142fef0451f3b84d7f128cbffdf0
child 428947 f99a4070d320bd69108595414342f58d2241e04b
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1395418
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1395418 Revert a previous patch that disabled std::thread on MinGW because we didn't have it. Now we do. r=cpearce MozReview-Commit-ID: 8ah0Unum1f2
media/gmp-clearkey/0.1/VideoDecoder.cpp
--- a/media/gmp-clearkey/0.1/VideoDecoder.cpp
+++ b/media/gmp-clearkey/0.1/VideoDecoder.cpp
@@ -33,22 +33,17 @@ VideoDecoder::VideoDecoder(Host_8 *aHost
 {
   CK_LOGD("VideoDecoder created");
 
   // We drop the ref in DecodingComplete().
   AddRef();
 
   mDecoder = new WMFH264Decoder();
 
-  // MinGW Does not support std::thread (See #1349912)
-#ifdef __MINGW32__
-  uint32_t cores = 1u;
-#else
   uint32_t cores = std::max(1u, std::thread::hardware_concurrency());
-#endif
 
   HRESULT hr = mDecoder->Init(cores);
 }
 
 VideoDecoder::~VideoDecoder()
 {
   CK_LOGD("VideoDecoder destroyed");
 }