Bug 1471018 - Speed-up AsmJSCache shutdown by setting the shutdown requested flag; r=asuth

This commit is contained in:
Jan Varga 2018-08-14 08:22:43 +02:00
parent dc30c2faac
commit 16430edcdd

View File

@ -1938,6 +1938,9 @@ void
Client::ShutdownWorkThreads()
{
AssertIsOnBackgroundThread();
MOZ_ASSERT(!mShutdownRequested);
mShutdownRequested = true;
if (sLiveParentActors) {
MOZ_ALWAYS_TRUE(SpinEventLoopUntil([&]() {