summaryrefslogtreecommitdiff
path: root/cs/src/Ice/ObjectAdapterFactory.cs
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2005-04-28 03:33:28 +0000
committerMichi Henning <michi@zeroc.com>2005-04-28 03:33:28 +0000
commite981e8366fd2fb9ba088db1da8a9ad2894ef24f0 (patch)
tree389c9348f0a2839dcbca66f32fa8724dd0e1946a /cs/src/Ice/ObjectAdapterFactory.cs
parentAdded initial support for templates. (diff)
downloadice-e981e8366fd2fb9ba088db1da8a9ad2894ef24f0.tar.bz2
ice-e981e8366fd2fb9ba088db1da8a9ad2894ef24f0.tar.xz
ice-e981e8366fd2fb9ba088db1da8a9ad2894ef24f0.zip
Disabled finalizers once process shutdown has started. This isn't perfect
yet -- Mark's changes to finalizers aren't all in there yet.
Diffstat (limited to 'cs/src/Ice/ObjectAdapterFactory.cs')
-rwxr-xr-xcs/src/Ice/ObjectAdapterFactory.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/cs/src/Ice/ObjectAdapterFactory.cs b/cs/src/Ice/ObjectAdapterFactory.cs
index 4640cc8a7af..b3051e51772 100755
--- a/cs/src/Ice/ObjectAdapterFactory.cs
+++ b/cs/src/Ice/ObjectAdapterFactory.cs
@@ -165,18 +165,18 @@ namespace IceInternal
_waitForShutdown = false;
}
+#if DEBUG
~ObjectAdapterFactory()
{
-#if DEBUG
lock(this)
{
- Debug.Assert(_instance == null);
- Debug.Assert(_communicator == null);
- Debug.Assert(_adapters != null);
- Debug.Assert(!_waitForShutdown);
+ IceUtil.Assert.FinalizerAssert(_instance == null);
+ IceUtil.Assert.FinalizerAssert(_communicator == null);
+ IceUtil.Assert.FinalizerAssert(_adapters != null);
+ IceUtil.Assert.FinalizerAssert(!_waitForShutdown);
}
-#endif DEBUG
}
+#endif
private Instance _instance;
private Ice.Communicator _communicator;