From f715238baac42c9d48de438e1a42c2da143a9150 Mon Sep 17 00:00:00 2001 From: Erik Garrison Date: Thu, 26 Sep 2024 12:16:07 -0500 Subject: [PATCH] avoid racing too hard --- src/map/include/computeMap.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/include/computeMap.hpp b/src/map/include/computeMap.hpp index aeacebcb..af52fb13 100644 --- a/src/map/include/computeMap.hpp +++ b/src/map/include/computeMap.hpp @@ -787,7 +787,8 @@ namespace skch for (auto& fragment : fragments) { while (!fragment_queue.try_push(fragment)) { - std::this_thread::yield(); + //std::this_thread::yield(); // too fast + std::this_thread::sleep_for(std::chrono::microseconds(100)); } }