From 68c7bef33e74f23aa0136ccd6f7faa654d671ebc Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期五, 21 五月 2021 09:23:01 +0800 Subject: [PATCH] center publish notify; fix topic partial match. --- src/shm_queue.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shm_queue.h b/src/shm_queue.h index 7871fe0..3a2cea6 100644 --- a/src/shm_queue.h +++ b/src/shm_queue.h @@ -46,7 +46,7 @@ if (TryRead(d)) { return true; } else { - robust::QuickSleep(); + std::this_thread::sleep_for(1ms); } } while (steady_clock::now() < end_time); return false; @@ -75,7 +75,6 @@ private: Circular<D> queue_; - // bhome_shm::Mutex mutex_; }; template <int Power = 4> @@ -96,7 +95,7 @@ return true; } } - robust::QuickSleep(); + std::this_thread::sleep_for(1ms); } while (steady_clock::now() < end_time); return false; } -- Gitblit v1.8.0