mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 19:39:13 +00:00
Bug 254555 mark nsConsoleService as nsIClassInfo::THREAD_SAFE
r=dougt
This commit is contained in:
parent
5e730ee0bc
commit
f731589825
@ -50,7 +50,10 @@
|
||||
#include "nsConsoleService.h"
|
||||
#include "nsConsoleMessage.h"
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsConsoleService, nsIConsoleService)
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsConsoleService)
|
||||
NS_IMPL_THREADSAFE_RELEASE(nsConsoleService)
|
||||
NS_IMPL_QUERY_INTERFACE1_CI(nsConsoleService, nsIConsoleService)
|
||||
NS_IMPL_CI_INTERFACE_GETTER1(nsConsoleService, nsIConsoleService)
|
||||
|
||||
nsConsoleService::nsConsoleService()
|
||||
: mCurrent(0), mFull(PR_FALSE), mListening(PR_FALSE), mLock(nsnull)
|
||||
|
@ -175,6 +175,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsSupportsInterfacePointerImpl)
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsArray)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsConsoleService)
|
||||
NS_DECL_CLASSINFO(nsConsoleService)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAtomService)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsExceptionService)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTimerImpl)
|
||||
@ -295,6 +296,11 @@ PRBool gXPCOMShuttingDown = PR_FALSE;
|
||||
NULL, NULL, NULL, NS_CI_INTERFACE_GETTER_NAME(Class), NULL, \
|
||||
&NS_CLASSINFO_NAME(Class) }
|
||||
|
||||
#define COMPONENT_CI_FLAGS(NAME, Ctor, Class, Flags) \
|
||||
{ NS_##NAME##_CLASSNAME, NS_##NAME##_CID, NS_##NAME##_CONTRACTID, Ctor, \
|
||||
NULL, NULL, NULL, NS_CI_INTERFACE_GETTER_NAME(Class), NULL, \
|
||||
&NS_CLASSINFO_NAME(Class), Flags }
|
||||
|
||||
static const nsModuleComponentInfo components[] = {
|
||||
COMPONENT(MEMORY, nsMemoryImpl::Create),
|
||||
COMPONENT(DEBUG, nsDebugImpl::Create),
|
||||
@ -315,7 +321,9 @@ static const nsModuleComponentInfo components[] = {
|
||||
|
||||
COMPONENT(SUPPORTSARRAY, nsSupportsArray::Create),
|
||||
COMPONENT(ARRAY, nsArrayConstructor),
|
||||
COMPONENT(CONSOLESERVICE, nsConsoleServiceConstructor),
|
||||
COMPONENT_CI_FLAGS(CONSOLESERVICE, nsConsoleServiceConstructor,
|
||||
nsConsoleService,
|
||||
nsIClassInfo::THREADSAFE | nsIClassInfo::SINGLETON),
|
||||
COMPONENT(EXCEPTIONSERVICE, nsExceptionServiceConstructor),
|
||||
COMPONENT(ATOMSERVICE, nsAtomServiceConstructor),
|
||||
#ifdef MOZ_TIMELINE
|
||||
|
Loading…
x
Reference in New Issue
Block a user