From 56012527c9df82bda74f8199deb1953a082c410c Mon Sep 17 00:00:00 2001
From: James David Berry <jberry@apache.org>
Date: Fri, 7 Mar 2008 17:52:07 +0000
Subject: [PATCH] Pending further discussion, comment out the public interface
 to atomicIncrement and atomicDecrement

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@634758 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/util/PlatformUtils.cpp | 3 ++-
 src/xercesc/util/PlatformUtils.hpp | 8 ++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/xercesc/util/PlatformUtils.cpp b/src/xercesc/util/PlatformUtils.cpp
index 96666155d..941a51b3a 100644
--- a/src/xercesc/util/PlatformUtils.cpp
+++ b/src/xercesc/util/PlatformUtils.cpp
@@ -807,6 +807,7 @@ void* XMLPlatformUtils::compareAndSwap(void**            toFill
 }
 
 
+/* These two routines are disabled pending further comment. They are unused in Xerces at present.
 int XMLPlatformUtils::atomicIncrement(int &location)
 {
     if (!fgAtomicOpMgr)
@@ -823,7 +824,7 @@ int XMLPlatformUtils::atomicDecrement(int &location)
 
 	return fgAtomicOpMgr->decrement(location);
 }
-
+*/
 
 
 
diff --git a/src/xercesc/util/PlatformUtils.hpp b/src/xercesc/util/PlatformUtils.hpp
index 1770cc7c9..6a1722c7b 100644
--- a/src/xercesc/util/PlatformUtils.hpp
+++ b/src/xercesc/util/PlatformUtils.hpp
@@ -662,8 +662,10 @@ public :
       * zero case, the value returned may differ from the actual result of
       * the operation - only the sign and zero/nonzero state is guaranteed
       * to be correct.
-      */
+      
+      * disabled for now pending further comment (unused)
     static int atomicIncrement(int& location);
+      */
 
     /** Decrements a single word variable atomically.
       *
@@ -683,8 +685,10 @@ public :
       * zero case, the value returned may differ from the actual result of the
       * operation - only the sign and zero/nonzero state is guaranteed to be
       * correct.
-      */
+      
+      * disabled for now pending further comment (unused)
     static int atomicDecrement(int& location);
+      */
 
     //@}
 
-- 
GitLab