commit | 82576d10c3444fb4c34d81b0b28e2a103fada8a1 | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Wed Mar 31 21:33:37 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Mar 31 21:33:37 2021 +0000 |
tree | c1d6f873025d162447e5d45aa78e56b24687c76a | |
parent | e3f37cc0c92c96ce9efd6bcfc8e9f9baf5ef9a35 [diff] | |
parent | 8bf5ab871be0114248f8f547d57c816bb2d64d8e [diff] |
Merge "Add std::this_thread::yield to Burst NN polling loop" am: 6aab5a161e am: 7efe947159 am: a89d08fdc4 am: 8bf5ab871b Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1659697 Change-Id: I0bc29428579c9b73797acb593c39c48c161559a8
diff --git a/neuralnetworks/1.2/utils/src/ExecutionBurstUtils.cpp b/neuralnetworks/1.2/utils/src/ExecutionBurstUtils.cpp index ca3a52c..1bdde1e 100644 --- a/neuralnetworks/1.2/utils/src/ExecutionBurstUtils.cpp +++ b/neuralnetworks/1.2/utils/src/ExecutionBurstUtils.cpp
@@ -520,6 +520,8 @@ } 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 @@ } return packet; } + + std::this_thread::yield(); } // If we get to this point, we either stopped polling because it was taking too long or polling