brianp 2002/09/21 20:47:01
Modified: test testatomic.c
Log:
Test all of the atomic math operations in the multithreaded
phase of the tests
Revision Changes Path
1.17 +4 -1 apr/test/testatomic.c
Index: testatomic.c
===================================================================
RCS file: /home/cvs/apr/test/testatomic.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- testatomic.c 2 Jul 2002 18:18:52 -0000 1.16
+++ testatomic.c 22 Sep 2002 03:47:01 -0000 1.17
@@ -213,7 +213,10 @@
apr_thread_once(control, init_func);
for (i = 0; i < NUM_ITERATIONS ; i++) {
- apr_atomic_inc( &y );
+ apr_atomic_inc(&y);
+ apr_atomic_add(&y, 2);
+ apr_atomic_dec(&y);
+ apr_atomic_dec(&y);
}
apr_thread_exit(thd, exit_ret_val);
return NULL;