mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 774388 - Patch 8: Avoid a deadlock between shutdown of CompositorParent and of CompositorThreadHolder - r=mattwoodrow
This commit is contained in:
parent
fc31fa9ac1
commit
ed54a8ae99
@ -321,9 +321,10 @@ CompositorParent::RecvWillStop()
|
||||
return true;
|
||||
}
|
||||
|
||||
static void DeferredDeleteCompositorParentOnMainThread(CompositorParent* aNowReadyToDie)
|
||||
void DeferredDeleteCompositorParentOnMainThread(CompositorParent* aNowReadyToDie)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
aNowReadyToDie->mCompositorThreadHolder = nullptr;
|
||||
aNowReadyToDie->Release();
|
||||
}
|
||||
|
||||
|
@ -311,9 +311,11 @@ protected:
|
||||
|
||||
nsRefPtr<APZCTreeManager> mApzcTreeManager;
|
||||
|
||||
const nsRefPtr<CompositorThreadHolder> mCompositorThreadHolder;
|
||||
nsRefPtr<CompositorThreadHolder> mCompositorThreadHolder;
|
||||
|
||||
DISALLOW_EVIL_CONSTRUCTORS(CompositorParent);
|
||||
|
||||
friend void DeferredDeleteCompositorParentOnMainThread(CompositorParent* aNowReadyToDie);
|
||||
};
|
||||
|
||||
} // layers
|
||||
|
Loading…
Reference in New Issue
Block a user