diff options
author | Michi Henning <michi@zeroc.com> | 2005-07-04 02:06:23 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-07-04 02:06:23 +0000 |
commit | 11440f12c77b43a7d43e948e15df35c4b71c7e00 (patch) | |
tree | a93bf57b23a16939e6e1c99f42b9263191247704 /cpp/src/IceUtil/GCRecMutex.cpp | |
parent | Made Ice.ObjectImpl abstract. (diff) | |
download | ice-11440f12c77b43a7d43e948e15df35c4b71c7e00.tar.bz2 ice-11440f12c77b43a7d43e948e15df35c4b71c7e00.tar.xz ice-11440f12c77b43a7d43e948e15df35c4b71c7e00.zip |
Made Ice::Object abstract.
Diffstat (limited to 'cpp/src/IceUtil/GCRecMutex.cpp')
-rw-r--r-- | cpp/src/IceUtil/GCRecMutex.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/cpp/src/IceUtil/GCRecMutex.cpp b/cpp/src/IceUtil/GCRecMutex.cpp deleted file mode 100644 index 641935ade61..00000000000 --- a/cpp/src/IceUtil/GCRecMutex.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2005 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 <IceUtil/GCRecMutex.h> - -namespace IceUtil -{ -GCRecMutex gcRecMutex; -} - -using namespace IceUtil; - -static int gcInitCount = 0; - -GCRecMutex::GCRecMutex() -{ - if(gcInitCount++ == 0) - { - _m = new RecMutex; - } -} - -GCRecMutex::~GCRecMutex() -{ - if(--gcInitCount == 0) - { - delete _m; - } -} - -GCRecMutexInit::GCRecMutexInit() -{ - if(gcInitCount++ == 0) - { - gcRecMutex._m = new RecMutex; - } -} - -GCRecMutexInit::~GCRecMutexInit() -{ - if(--gcInitCount == 0) - { - delete gcRecMutex._m; - } -} |