Vector experiments, fixed atomic flag mistake, begin block-sync algorithm
This commit is contained in:
@@ -46,7 +46,7 @@ int main() {
|
||||
});
|
||||
piCout << "stdMutex:" << stdMutexPerformance.get() << "ms";
|
||||
|
||||
std::atomic_flag stdAtomic;
|
||||
std::atomic_flag stdAtomic = ATOMIC_FLAG_INIT;
|
||||
auto stdAtomicPerformance = check_performance([&stdAtomic](){
|
||||
while(stdAtomic.test_and_set(std::memory_order_acquire)) {
|
||||
std::this_thread::yield();
|
||||
|
||||
Reference in New Issue
Block a user