зеркало из https://github.com/mozilla/gecko-dev.git
Bug 887288 - Make nsDOMMemoryFileDataOwnerMemoryReporter thread-safe. r=khuey
This commit is contained in:
Родитель
37db900151
Коммит
f5ca558b7a
|
@ -706,12 +706,13 @@ class nsDOMMemoryFileDataOwnerMemoryReporter MOZ_FINAL
|
|||
}
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsDOMMemoryFileDataOwnerMemoryReporter,
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsDOMMemoryFileDataOwnerMemoryReporter,
|
||||
nsIMemoryMultiReporter)
|
||||
|
||||
/* static */ void
|
||||
nsDOMMemoryFile::DataOwner::EnsureMemoryReporterRegistered()
|
||||
{
|
||||
sDataOwnerMutex.AssertCurrentThreadOwns();
|
||||
if (sMemoryReporterRegistered) {
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче