mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 956374 - HTTP cache v2: fix CacheIOThread::Target() wait conditioning, r=michal
This commit is contained in:
parent
b2cdbb84eb
commit
a2007b5647
@ -114,12 +114,14 @@ void CacheIOThread::ThreadFunc()
|
||||
MonitorAutoLock lock(mMonitor);
|
||||
|
||||
// This creates nsThread for this PRThread
|
||||
mXPCOMThread = NS_GetCurrentThread();
|
||||
nsCOMPtr<nsIThread> xpcomThread = NS_GetCurrentThread();
|
||||
|
||||
threadInternal = do_QueryInterface(mXPCOMThread);
|
||||
threadInternal = do_QueryInterface(xpcomThread);
|
||||
if (threadInternal)
|
||||
threadInternal->SetObserver(this);
|
||||
|
||||
mXPCOMThread.swap(xpcomThread);
|
||||
|
||||
lock.NotifyAll();
|
||||
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user