summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2009-12-01 20:25:48 -0500
committerMathias Stearn <mathias@10gen.com>2009-12-01 20:25:48 -0500
commitc0e79bf1d4b6a2813a0aa93bc63fdb6c89c281c0 (patch)
tree18924bace50baa02247881be60e9213b731c215e
parent31723f3d28d9c8b2d08a3ffcce23751f70a8b153 (diff)
downloadmongo-c0e79bf1d4b6a2813a0aa93bc63fdb6c89c281c0.tar.gz
removing atomic increment for now
-rw-r--r--stdafx.h1
-rw-r--r--util/goodies.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/stdafx.h b/stdafx.h
index f0558378ff9..5352c5e4d58 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -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) {