Skip to content

Commit

Permalink
avoid racing too hard
Browse files Browse the repository at this point in the history
  • Loading branch information
ekg committed Sep 26, 2024
1 parent 9051cb1 commit f715238
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map/include/computeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit f715238

Please sign in to comment.