Browse Source

querry operation finished state in loop which could be more efficient

master
Constantin Fürst 11 months ago
parent
commit
140ded012a
  1. 1
      offloading-cacher/cache.hpp

1
offloading-cacher/cache.hpp

@ -695,6 +695,7 @@ inline void dsacache::CacheData::WaitOnCompletion() {
bool error = false; bool error = false;
for (auto& handler : *local_handlers) { for (auto& handler : *local_handlers) {
while (!handler.is_finished()) sched_yield();
auto result = handler.get(); auto result = handler.get();
if (result.status != dml::status_code::ok) { if (result.status != dml::status_code::ok) {

Loading…
Cancel
Save