diff options
author | Jose <jose@zeroc.com> | 2009-08-04 22:18:24 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2009-08-04 22:18:24 +0200 |
commit | 618deb2618ca2698141773f1658071c372d2cd3b (patch) | |
tree | a09f5965e8bcfea07a305df61505af2c35a71cdf /cpp/src/Ice/CommunicatorI.cpp | |
parent | bug 4186 - PHP test failure (diff) | |
download | ice-618deb2618ca2698141773f1658071c372d2cd3b.tar.bz2 ice-618deb2618ca2698141773f1658071c372d2cd3b.tar.xz ice-618deb2618ca2698141773f1658071c372d2cd3b.zip |
4071 - Global namespace pollution
Diffstat (limited to 'cpp/src/Ice/CommunicatorI.cpp')
-rw-r--r-- | cpp/src/Ice/CommunicatorI.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/Ice/CommunicatorI.cpp b/cpp/src/Ice/CommunicatorI.cpp index cc61ce97c52..86e1fc4fba1 100644 --- a/cpp/src/Ice/CommunicatorI.cpp +++ b/cpp/src/Ice/CommunicatorI.cpp @@ -35,6 +35,9 @@ IceUtil::Handle<IceInternal::GC> theCollector = 0; } +namespace +{ + struct GarbageCollectorStats { GarbageCollectorStats() : @@ -47,9 +50,6 @@ struct GarbageCollectorStats IceUtil::Time time; }; -namespace -{ - int communicatorCount = 0; IceUtil::Mutex* gcMutex = 0; GarbageCollectorStats gcStats; @@ -77,9 +77,7 @@ public: Init init; -} - -static void +void printGCStats(const IceInternal::GCStats& stats) { if(gcTraceLevel) @@ -96,6 +94,8 @@ printGCStats(const IceInternal::GCStats& stats) } } +} + void Ice::CommunicatorI::destroy() { |