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