Update of /cvsroot/cppunit/cppunit2/include/cpptl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8437/include/cpptl
Modified Files:
atomiccounter.h
Log Message:
* removed volatile when using atomic_t as storage.
Index: atomiccounter.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/atomiccounter.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** atomiccounter.h 6 Mar 2005 20:26:35 -0000 1.5
--- atomiccounter.h 6 Mar 2005 20:28:41 -0000 1.6
***************
*** 25,29 ****
# if CPPTL_HAS_VACPP_CHECKLOCK
typedef int AtomicCounterIntegerType;
! typedef AtomicCounterIntegerType AtomicCounterStorageType;
# elif CPPTL_USE_LINUX_ATOMIC
typedef long AtomicCounterIntegerType;
--- 25,29 ----
# if CPPTL_HAS_VACPP_CHECKLOCK
typedef int AtomicCounterIntegerType;
! typedef volatile AtomicCounterIntegerType AtomicCounterStorageType;
# elif CPPTL_USE_LINUX_ATOMIC
typedef long AtomicCounterIntegerType;
***************
*** 31,35 ****
# else
typedef long AtomicCounterIntegerType;
! typedef AtomicCounterIntegerType AtomicCounterStorageType;
# endif
--- 31,35 ----
# else
typedef long AtomicCounterIntegerType;
! typedef volatile AtomicCounterIntegerType AtomicCounterStorageType;
# endif
***************
*** 51,55 ****
private:
! volatile AtomicCounterStorageType count_;
};
--- 51,55 ----
private:
! AtomicCounterStorageType count_;
};
|