mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "Add std::this_thread::yield to Burst NN polling loop" am: 6aab5a161e am: 7efe947159 am: a89d08fdc4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1659697 Change-Id: Iac9ec6d5be21fa13c157f655d247901ede698242
This commit is contained in:
@@ -520,6 +520,8 @@ nn::Result<std::vector<FmqRequestDatum>> RequestChannelReceiver::getPacketBlocki
|
||||
}
|
||||
return packet;
|
||||
}
|
||||
|
||||
std::this_thread::yield();
|
||||
}
|
||||
|
||||
// If we get to this point, we either stopped polling because it was taking too long or polling
|
||||
@@ -665,6 +667,8 @@ nn::Result<std::vector<FmqResultDatum>> ResultChannelReceiver::getPacketBlocking
|
||||
}
|
||||
return packet;
|
||||
}
|
||||
|
||||
std::this_thread::yield();
|
||||
}
|
||||
|
||||
// If we get to this point, we either stopped polling because it was taking too long or polling
|
||||
|
||||
Reference in New Issue
Block a user