You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/08/31 10:55:35 UTC
svn commit: r809507 -
/commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
Author: mturk
Date: Mon Aug 31 08:55:34 2009
New Revision: 809507
URL: http://svn.apache.org/viewvc?rev=809507&view=rev
Log:
Use Win32 attomic inc
Modified:
commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
Modified: commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testcase.c?rev=809507&r1=809506&r2=809507&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/test/testcase.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/test/testcase.c Mon Aug 31 08:55:34 2009
@@ -672,6 +672,8 @@
*/
#if defined(__GNUC__)
__sync_fetch_and_add(dtf_called, 1);
+#elif defined(_MSC_VER)
+ InterlockedIncrement(dtf_called);
#else
*dtf_called += 1;
#endif