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