diff options
author | Ben Maurer <benm@mono-cvs.ximian.com> | 2005-05-27 03:10:47 +0400 |
---|---|---|
committer | Ben Maurer <benm@mono-cvs.ximian.com> | 2005-05-27 03:10:47 +0400 |
commit | f1ea3a510690b826a250a0a0849fe583b589485a (patch) | |
tree | 2b1f432fd84e73b6ccb3e744a0e27ab5570a6360 /mcs | |
parent | 803a0337dd92d319cc05d6827444e23460433a4c (diff) |
lock fixes
svn path=/trunk/mcs/; revision=45087
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesConfigurationSectionHandler.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesConfigurationSectionHandler.cs b/mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesConfigurationSectionHandler.cs index 10fe7602f9e..936746c857c 100644 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesConfigurationSectionHandler.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Configuration/WebServicesConfigurationSectionHandler.cs @@ -47,7 +47,7 @@ namespace System.Web.Services.Configuration class WSConfig { - static WSConfig instance; + volatile static WSConfig instance; WSProtocol protocols; string wsdlHelpPage; string filePath; @@ -55,6 +55,7 @@ namespace System.Web.Services.Configuration ArrayList extensionImporterTypes = new ArrayList(); ArrayList extensionReflectorTypes = new ArrayList(); ArrayList formatExtensionTypes = new ArrayList(); + static readonly object lockobj = new object (); public WSConfig (WSConfig parent, object context) { @@ -142,7 +143,7 @@ namespace System.Web.Services.Configuration if (instance != null) return instance; - lock (typeof (WSConfig)) { + lock (lockobj) { if (instance != null) return instance; |