зеркало из https://github.com/mozilla/gecko-dev.git
Bug 538918 - Move Init() above mutex unlock - attempted test hang fix.
This commit is contained in:
Родитель
1d3d3b182e
Коммит
ca9673adc9
|
@ -604,11 +604,11 @@ SyncChannel::WaitForNotify()
|
|||
{
|
||||
mMutex.AssertCurrentThreadOwns();
|
||||
|
||||
MutexAutoUnlock unlock(mMutex);
|
||||
|
||||
// Initialize global objects used in deferred messaging.
|
||||
Init();
|
||||
|
||||
MutexAutoUnlock unlock(mMutex);
|
||||
|
||||
if (++gEventLoopDepth == 1) {
|
||||
NS_ASSERTION(!gNeuteredWindows, "Should only set this once!");
|
||||
gNeuteredWindows = new nsAutoTArray<HWND, 20>();
|
||||
|
@ -712,11 +712,11 @@ RPCChannel::WaitForNotify()
|
|||
{
|
||||
mMutex.AssertCurrentThreadOwns();
|
||||
|
||||
MutexAutoUnlock unlock(mMutex);
|
||||
|
||||
// Initialize global objects used in deferred messaging.
|
||||
Init();
|
||||
|
||||
MutexAutoUnlock unlock(mMutex);
|
||||
|
||||
// IsSpinLoopActive indicates modal UI is being displayed in a plugin. Drop
|
||||
// down into the spin loop until all modal loops end. If SpinInternalEventLoop
|
||||
// returns true, the out-call response we were waiting on arrived, or we
|
||||
|
|
Загрузка…
Ссылка в новой задаче