add thread_fence

This commit is contained in:
mutouyun 2018-12-12 09:54:08 +08:00
parent 35a8f95619
commit eccded45c2

View File

@ -23,6 +23,7 @@ public:
break;
}
std::this_thread::yield();
std::atomic_thread_fence(std::memory_order_acquire);
}
}