Bug 254555 mark nsConsoleService as nsIClassInfo::THREAD_SAFE

r=dougt
This commit is contained in:
timeless%mozdev.org 2004-10-28 07:34:41 +00:00
parent 5e730ee0bc
commit f731589825
2 changed files with 13 additions and 2 deletions

View File

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

View File

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