summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/threadedtests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/threadedtests.cpp')
-rw-r--r--src/mongo/dbtests/threadedtests.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/dbtests/threadedtests.cpp b/src/mongo/dbtests/threadedtests.cpp
index 31c7bf26bc9..d8bcde1486e 100644
--- a/src/mongo/dbtests/threadedtests.cpp
+++ b/src/mongo/dbtests/threadedtests.cpp
@@ -119,7 +119,7 @@ class ThreadPoolTest {
static const unsigned iterations = 10000;
static const unsigned nThreads = 8;
- AtomicUInt32 counter;
+ AtomicWord<unsigned> counter;
void increment(unsigned n) {
for (unsigned i = 0; i < n; i++) {
counter.fetchAndAdd(1);
@@ -177,7 +177,7 @@ private:
char pad2[128];
unsigned locks;
char pad3[128];
- AtomicInt32 k;
+ AtomicWord<int> k;
virtual void validate() {
if (once++ == 0) {
@@ -199,7 +199,7 @@ private:
break;
}
}
- AtomicBool done;
+ AtomicWord<bool> done;
virtual void subthread(int x) {
if (x == 1) {
watch();
@@ -300,8 +300,8 @@ public:
// would have very little slack.
add<Slack<SimpleMutex, stdx::lock_guard<SimpleMutex>>>();
- add<IsAtomicWordAtomic<AtomicUInt32>>();
- add<IsAtomicWordAtomic<AtomicUInt64>>();
+ add<IsAtomicWordAtomic<AtomicWord<unsigned>>>();
+ add<IsAtomicWordAtomic<AtomicWord<unsigned long long>>>();
add<ThreadPoolTest>();
add<TicketHolderWaits>();