commit | 7efe947159fd503cdbe609c09ec87e3d7628136a | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Wed Mar 31 19:56:16 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Mar 31 19:56:16 2021 +0000 |
tree | bb47928c5446a9c12ebd11a8df814a59b7517b2e | |
parent | 319cf92322af0b62503204db42274794fc28392b [diff] | |
parent | 6aab5a161e74188fc98b61ebc0d26325cc478a78 [diff] |
Merge "Add std::this_thread::yield to Burst NN polling loop" am: 6aab5a161e Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1659697 Change-Id: I235ef3271adf0ee385189f654997a767f9589633
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