Commit 711c7a48 authored by Doron Roberts-Kedes's avatar Doron Roberts-Kedes Committed by Facebook Github Bot

folly DeterministicSchedule: Add a new typedef BufferedDeterministicAtomic

Summary:
There are too many corner cases at the moment to redefine
DeterministicAtomic as using BufferedAtomic, so add a 2nd one to allow test to
transition over to BufferedAtomic on a case by case basis.

Reviewed By: djwatson

Differential Revision: D13379877

fbshipit-source-id: 76efdd4faedd6c5af13ab8507f41fb63b3e1c7f3
parent 5e56650c
......@@ -396,6 +396,11 @@ template <typename T>
std::unordered_map<const BufferedAtomic<T>*, RecordBuffer<T>>
BufferedAtomic<T>::bufs =
std::unordered_map<const BufferedAtomic<T>*, RecordBuffer<T>>();
template <typename T>
using BufferedDeterministicAtomic =
DeterministicAtomicImpl<T, DeterministicSchedule, BufferedAtomic>;
} // namespace test
} // namespace folly
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment