Backed out changeset 3b0f04771005 (bug 1568361) Windows MinGW build bustages on a CLOSED TREE

This commit is contained in:
Andreea Pavel 2019-08-07 03:21:19 +03:00
Родитель a353683d24
Коммит 5c7466c411
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -7,8 +7,8 @@
#include "mozilla/mscom/EnsureMTA.h"
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/StaticLocalPtr.h"
#include "mozilla/SystemGroup.h"
#include "mozilla/UniquePtr.h"
#include "nsThreadUtils.h"
#include "private/pprthred.h"
@ -59,9 +59,9 @@ namespace mscom {
/* static */
nsCOMPtr<nsIThread> EnsureMTA::GetMTAThread() {
static StaticLocalAutoPtr<BackgroundMTAData> sMTAData =
[]() -> BackgroundMTAData* {
BackgroundMTAData* bgData = new BackgroundMTAData();
static UniquePtr<BackgroundMTAData> sMTAData =
[]() -> UniquePtr<BackgroundMTAData> {
auto bgData = MakeUnique<BackgroundMTAData>();
auto setClearOnShutdown = [ptr = &sMTAData]() -> void {
ClearOnShutdown(ptr, ShutdownPhase::ShutdownThreads);