Vector experiments, fixed atomic flag mistake, begin block-sync algorithm

This commit is contained in:
5 changed files with 313 additions and 3 deletions

View File

@@ -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();