diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-01-16 16:27:55 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-01-16 16:27:55 +0000 |
commit | 498f51b8f1bab7e14eed16c3f68e5b6a0c1b0466 (patch) | |
tree | 0b6ae20be1b3598e51e08dfff6ed06ace7c294cf /cpp/src/Ice/GCRecMutex.cpp | |
parent | update installshield project (diff) | |
download | ice-498f51b8f1bab7e14eed16c3f68e5b6a0c1b0466.tar.bz2 ice-498f51b8f1bab7e14eed16c3f68e5b6a0c1b0466.tar.xz ice-498f51b8f1bab7e14eed16c3f68e5b6a0c1b0466.zip |
Refactored GC
Diffstat (limited to 'cpp/src/Ice/GCRecMutex.cpp')
-rwxr-xr-x | cpp/src/Ice/GCRecMutex.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/cpp/src/Ice/GCRecMutex.cpp b/cpp/src/Ice/GCRecMutex.cpp deleted file mode 100755 index 2aae1e34139..00000000000 --- a/cpp/src/Ice/GCRecMutex.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <Ice/GCRecMutex.h> - -namespace IceInternal -{ -GCRecMutex gcRecMutex; -} - -using namespace IceInternal; - -static int gcInitCount = 0; - -GCRecMutex::GCRecMutex() -{ - if(gcInitCount++ == 0) - { - _m = new IceUtil::RecMutex; - } -} - -GCRecMutex::~GCRecMutex() -{ - if(--gcInitCount == 0) - { - delete _m; - } -} - -GCRecMutexInit::GCRecMutexInit() -{ - if(gcInitCount++ == 0) - { - gcRecMutex._m = new IceUtil::RecMutex; - } -} - -GCRecMutexInit::~GCRecMutexInit() -{ - if(--gcInitCount == 0) - { - delete gcRecMutex._m; - } -} |