diff options
author | Mathias Stearn <mathias@10gen.com> | 2009-12-01 20:25:48 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2009-12-01 20:25:48 -0500 |
commit | c0e79bf1d4b6a2813a0aa93bc63fdb6c89c281c0 (patch) | |
tree | 18924bace50baa02247881be60e9213b731c215e | |
parent | 31723f3d28d9c8b2d08a3ffcce23751f70a8b153 (diff) | |
download | mongo-c0e79bf1d4b6a2813a0aa93bc63fdb6c89c281c0.tar.gz |
removing atomic increment for now
-rw-r--r-- | stdafx.h | 1 | ||||
-rw-r--r-- | util/goodies.h | 3 |
2 files changed, 2 insertions, 2 deletions
@@ -99,7 +99,6 @@ namespace mongo { #include <boost/program_options.hpp> #include <boost/shared_ptr.hpp> #include <boost/smart_ptr.hpp> -#include <boost/interprocess/detail/atomic.hpp> #define BOOST_SPIRIT_THREADSAFE #include <boost/version.hpp> diff --git a/util/goodies.h b/util/goodies.h index 30013de867b..3d34715a430 100644 --- a/util/goodies.h +++ b/util/goodies.h @@ -117,8 +117,9 @@ namespace mongo { return x; } + // TODO: make atomic WrappingInt atomicIncrement(){ - return boost::interprocess::detail::atomic_inc32(&x); + return x++; } static int diff(unsigned a, unsigned b) { |