summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Shared.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2005-08-11 17:24:17 +0000
committerMark Spruiell <mes@zeroc.com>2005-08-11 17:24:17 +0000
commit9979b5ebc61fb982c6278ce66aded7b0cabe21c7 (patch)
tree2146087abae72a2a5faa2b7e657520e3c18e5b8f /cppe/src/IceE/Shared.cpp
parentRemoved extra includes (see bug #80) (diff)
downloadice-9979b5ebc61fb982c6278ce66aded7b0cabe21c7.tar.bz2
ice-9979b5ebc61fb982c6278ce66aded7b0cabe21c7.tar.xz
ice-9979b5ebc61fb982c6278ce66aded7b0cabe21c7.zip
minor (non-code) cleanup
Diffstat (limited to 'cppe/src/IceE/Shared.cpp')
-rw-r--r--cppe/src/IceE/Shared.cpp134
1 files changed, 67 insertions, 67 deletions
diff --git a/cppe/src/IceE/Shared.cpp b/cppe/src/IceE/Shared.cpp
index e82b9eb95d6..55a189114c8 100644
--- a/cppe/src/IceE/Shared.cpp
+++ b/cppe/src/IceE/Shared.cpp
@@ -1,67 +1,67 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice-E is licensed to you under the terms described in the
-// ICEE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#include <IceE/Shared.h>
-
-using namespace Ice;
-
-IceUtil::SimpleShared::SimpleShared() :
- _ref(0),
- _noDelete(false)
-{
-}
-
-IceUtil::SimpleShared::SimpleShared(const SimpleShared&) :
- _ref(0),
- _noDelete(false)
-{
-}
-
-IceUtil::Shared::Shared() :
-#ifndef ICEE_HAS_ATOMIC_FUNCTIONS
- _ref(0),
-#endif
- _noDelete(false)
-{
-#ifdef ICEE_HAS_ATOMIC_FUNCTIONS
- ice_atomic_set(&_ref, 0);
-#endif
-}
-
-IceUtil::Shared::Shared(const Shared&) :
-#ifndef ICEE_HAS_ATOMIC_FUNCTIONS
- _ref(0),
-#endif
- _noDelete(false)
-{
-#ifdef ICEE_HAS_ATOMIC_FUNCTIONS
- ice_atomic_set(&_ref, 0);
-#endif
-}
-
-int
-IceUtil::Shared::__getRef() const
-{
-#if defined(_WIN32)
- return InterlockedExchangeAdd(const_cast<LONG*>(&_ref), 0);
-#elif defined(ICEE_HAS_ATOMIC_FUNCTIONS)
- return ice_atomic_exchange_add(0, const_cast<ice_atomic_t*>(&_ref));
-#else
- _mutex.lock();
- int ref = _ref;
- _mutex.unlock();
- return ref;
-#endif
-}
-
-void
-IceUtil::Shared::__setNoDelete(bool b)
-{
- _noDelete = b;
-}
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice-E is licensed to you under the terms described in the
+// ICEE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#include <IceE/Shared.h>
+
+using namespace Ice;
+
+IceUtil::SimpleShared::SimpleShared() :
+ _ref(0),
+ _noDelete(false)
+{
+}
+
+IceUtil::SimpleShared::SimpleShared(const SimpleShared&) :
+ _ref(0),
+ _noDelete(false)
+{
+}
+
+IceUtil::Shared::Shared() :
+#ifndef ICEE_HAS_ATOMIC_FUNCTIONS
+ _ref(0),
+#endif
+ _noDelete(false)
+{
+#ifdef ICEE_HAS_ATOMIC_FUNCTIONS
+ ice_atomic_set(&_ref, 0);
+#endif
+}
+
+IceUtil::Shared::Shared(const Shared&) :
+#ifndef ICEE_HAS_ATOMIC_FUNCTIONS
+ _ref(0),
+#endif
+ _noDelete(false)
+{
+#ifdef ICEE_HAS_ATOMIC_FUNCTIONS
+ ice_atomic_set(&_ref, 0);
+#endif
+}
+
+int
+IceUtil::Shared::__getRef() const
+{
+#if defined(_WIN32)
+ return InterlockedExchangeAdd(const_cast<LONG*>(&_ref), 0);
+#elif defined(ICEE_HAS_ATOMIC_FUNCTIONS)
+ return ice_atomic_exchange_add(0, const_cast<ice_atomic_t*>(&_ref));
+#else
+ _mutex.lock();
+ int ref = _ref;
+ _mutex.unlock();
+ return ref;
+#endif
+}
+
+void
+IceUtil::Shared::__setNoDelete(bool b)
+{
+ _noDelete = b;
+}