summaryrefslogtreecommitdiff
path: root/src/mongo/platform/atomic_word.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/platform/atomic_word.h')
-rw-r--r--src/mongo/platform/atomic_word.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mongo/platform/atomic_word.h b/src/mongo/platform/atomic_word.h
index 5a7d38ccca7..c277497b15c 100644
--- a/src/mongo/platform/atomic_word.h
+++ b/src/mongo/platform/atomic_word.h
@@ -87,7 +87,9 @@ public:
}
/**
- * Gets the current value of this AtomicWord using relaxed memory order.
+ * Gets the current value of this AtomicWord.
+ *
+ * Has relaxed semantics.
*/
WordType loadRelaxed() const {
return _value.load(std::memory_order_relaxed);
@@ -101,13 +103,6 @@ public:
}
/**
- * Sets the value of this AtomicWord to "newValue" using relaxed memory order.
- */
- void storeRelaxed(WordType newValue) {
- _value.store(newValue, std::memory_order_relaxed);
- }
-
- /**
* Atomically swaps the current value of this with "newValue".
*
* Returns the old value.