diff options
Diffstat (limited to 'cpp/src/Ice/Shared.cpp')
-rw-r--r-- | cpp/src/Ice/Shared.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/cpp/src/Ice/Shared.cpp b/cpp/src/Ice/Shared.cpp new file mode 100644 index 00000000000..84ed34d0aa2 --- /dev/null +++ b/cpp/src/Ice/Shared.cpp @@ -0,0 +1,43 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <Ice/Shared.h> + +using namespace std; +using namespace Ice; +using namespace IceInternal; + +//static int simpleDebugCounter = 0; +//static int debugCounter = 0; +//static JTCMutex debugCounterMutex; + +IceInternal::SimpleShared::SimpleShared() : + _ref(0) +{ +// cout << "new SimpleShared: " << ++simpleDebugCounter << endl; +} + +IceInternal::SimpleShared::~SimpleShared() +{ +// cout << "delete SimpleShared: " << --simpleDebugCounter << endl; +} + +IceInternal::Shared::Shared() : + _ref(0) +{ +// JTCSyncT<JTCMutex> sync(debugCounterMutex); +// cout << "new Shared: " << ++debugCounter << endl; +} + +IceInternal::Shared::~Shared() +{ +// JTCSyncT<JTCMutex> sync(debugCounterMutex); +// cout << "delete Shared: " << --debugCounter << endl; +} |