зеркало из https://github.com/mozilla/gecko-dev.git
Bug 993734: Stop pretending that the observer service is threadsafe. r=bsmedberg
This commit is contained in:
Родитель
d6377e31fc
Коммит
1af98f208a
|
@ -222,7 +222,7 @@ nsObserverService::Create(nsISupports* outer, const nsIID& aIID, void* *aInstanc
|
|||
|
||||
#define NS_ENSURE_VALIDCALL \
|
||||
if (!NS_IsMainThread()) { \
|
||||
NS_ERROR("Using observer service off the main thread!"); \
|
||||
MOZ_CRASH("Using observer service off the main thread!"); \
|
||||
return NS_ERROR_UNEXPECTED; \
|
||||
} \
|
||||
if (mShuttingDown) { \
|
||||
|
|
|
@ -27,7 +27,7 @@ public:
|
|||
|
||||
nsObserverService();
|
||||
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIOBSERVERSERVICE
|
||||
NS_DECL_NSIMEMORYREPORTER
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче