You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2008/03/07 18:16:30 UTC
svn commit: r634750 - /xerces/c/trunk/src/xercesc/util/PlatformUtils.hpp
Author: jberry
Date: Fri Mar 7 09:16:29 2008
New Revision: 634750
URL: http://svn.apache.org/viewvc?rev=634750&view=rev
Log:
Correct description of compareAndSwap
Modified:
xerces/c/trunk/src/xercesc/util/PlatformUtils.hpp
Modified: xerces/c/trunk/src/xercesc/util/PlatformUtils.hpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/PlatformUtils.hpp?rev=634750&r1=634749&r2=634750&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/PlatformUtils.hpp (original)
+++ xerces/c/trunk/src/xercesc/util/PlatformUtils.hpp Fri Mar 7 09:16:29 2008
@@ -612,9 +612,9 @@
* compareAndSwap subroutine performs an atomic operation which
* compares the contents of a single word variable with a stored old
* value. If the values are equal, a new value is stored in the single
- * word variable and TRUE is returned; otherwise, the old value is set
- * to the current value of the single word variable and FALSE is
- * returned.
+ * word variable and the comparison value is returned; otherwise,
+ * no value is stored and the current contents of the stored location
+ * are returned.
*
* The compareAndSwap subroutine is useful when a word value must be
* updated only if it has not been changed since it was last read.
@@ -629,7 +629,7 @@
* against (and conditionally updated with) the value of the single word
* variable.
*
- * @return Returns the new value assigned to the single word variable
+ * @return Returns the initial contents of the single word variable.
*/
static void* compareAndSwap
(
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org