summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/threadedtests.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2019-01-04 12:19:37 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2019-01-07 12:08:23 -0500
commit11bb071e91461b1f8e40b9b15ddf3b9e1a2d23d1 (patch)
tree7037865f9bf4445fb3295ca7ce72f4182f012554 /src/mongo/dbtests/threadedtests.cpp
parent6a0a21214dd96663c899cb8f2562d6121351ed3c (diff)
downloadmongo-11bb071e91461b1f8e40b9b15ddf3b9e1a2d23d1.tar.gz
SERVER-36644 remove AtomicWord typedefs
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>();