Bug 538918 - Move Init() above mutex unlock - attempted test hang fix.

This commit is contained in:
Jim Mathies 2010-02-11 11:25:39 -06:00
Родитель 1d3d3b182e
Коммит ca9673adc9
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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