mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1190496 - Use the normal XPCOM way to dispatch to the main thread. r=cpearce
This commit is contained in:
parent
34a48a151e
commit
98fc37909e
@ -119,7 +119,7 @@ NS_IMETHODIMP_(MozExternalRefCountType) SharedThreadPool::Release(void)
|
||||
// the nsIThreadPool. The Runnable here will add a refcount to the pool,
|
||||
// and when the Runnable releases the nsIThreadPool it will be deleted.
|
||||
nsCOMPtr<nsIRunnable> r = NS_NewRunnableMethod(mPool, &nsIThreadPool::Shutdown);
|
||||
AbstractThread::MainThread()->Dispatch(r.forget());
|
||||
NS_DispatchToMainThread(r);
|
||||
|
||||
// Stabilize refcount, so that if something in the dtor QIs, it won't explode.
|
||||
mRefCnt = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user