22 void atomicMax(std::atomic<T>& max, T value) {
24 while (value > prev && !max.compare_exchange_weak(prev, value))
29 void atomicMin(std::atomic<T>& min, T value) {
31 while (value < prev && !min.compare_exchange_weak(prev, value))
Parallel Processing primitives.
Definition: parallel_for_each.cpp:15