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

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