// ********************************************************************** // // Copyright (c) 2001 // MutableRealms, Inc. // Huntsville, AL, USA // // All Rights Reserved // // ********************************************************************** #include 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), _noDelete(false) { // cout << "new SimpleShared: " << ++simpleDebugCounter << endl; } IceInternal::SimpleShared::~SimpleShared() { // cout << "delete SimpleShared: " << --simpleDebugCounter << endl; } IceInternal::Shared::Shared() : _ref(0), _noDelete(false) { // JTCSyncT sync(debugCounterMutex); // cout << "new Shared: " << ++debugCounter << endl; } IceInternal::Shared::~Shared() { // JTCSyncT sync(debugCounterMutex); // cout << "delete Shared: " << --debugCounter << endl; }