From f483c05bd1b78621fdbafc65cd804b819941850d Mon Sep 17 00:00:00 2001 From: "thayes%netscape.com" Date: Wed, 3 May 2000 00:04:48 +0000 Subject: [PATCH] Replace implementation of nsISupports with thread-safe version. This allows SSL/HTTPS operations to complete on debug builds with thread-safety checking. r=bryner git-svn-id: svn://10.0.0.236/trunk@67971 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/caps/src/nsScriptSecurityManager.cpp | 2 +- mozilla/js/src/xpconnect/src/xpcthreadcontext.cpp | 3 ++- mozilla/profile/src/nsProfile.cpp | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/caps/src/nsScriptSecurityManager.cpp b/mozilla/caps/src/nsScriptSecurityManager.cpp index a2079e2ccf7..c6330b1a33c 100644 --- a/mozilla/caps/src/nsScriptSecurityManager.cpp +++ b/mozilla/caps/src/nsScriptSecurityManager.cpp @@ -353,7 +353,7 @@ nsSecurityNameSet::AddNameSet(nsIScriptContext* aScriptContext) // Methods implementing ISupports // //////////////////////////////////// -NS_IMPL_ISUPPORTS2(nsScriptSecurityManager, +NS_IMPL_THREADSAFE_ISUPPORTS2(nsScriptSecurityManager, nsIScriptSecurityManager, nsIXPCSecurityManager) diff --git a/mozilla/js/src/xpconnect/src/xpcthreadcontext.cpp b/mozilla/js/src/xpconnect/src/xpcthreadcontext.cpp index 99287feb792..87a95b56b74 100644 --- a/mozilla/js/src/xpconnect/src/xpcthreadcontext.cpp +++ b/mozilla/js/src/xpconnect/src/xpcthreadcontext.cpp @@ -45,7 +45,8 @@ * is using it. */ -NS_IMPL_ISUPPORTS2(nsXPCThreadJSContextStackImpl, nsIThreadJSContextStack, nsIJSContextStack) +NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCThreadJSContextStackImpl, + nsIThreadJSContextStack, nsIJSContextStack) static nsXPCThreadJSContextStackImpl* gXPCThreadJSContextStack = nsnull; diff --git a/mozilla/profile/src/nsProfile.cpp b/mozilla/profile/src/nsProfile.cpp index 6b30b28d1b7..5d6f0c5015e 100644 --- a/mozilla/profile/src/nsProfile.cpp +++ b/mozilla/profile/src/nsProfile.cpp @@ -183,9 +183,8 @@ nsProfile::~nsProfile() /* * nsISupports Implementation */ - -NS_IMPL_ADDREF(nsProfile) -NS_IMPL_RELEASE(nsProfile) +NS_IMPL_THREADSAFE_ADDREF(nsProfile) +NS_IMPL_THREADSAFE_RELEASE(nsProfile) NS_INTERFACE_MAP_BEGIN(nsProfile) NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIProfile)