commit | 8bf5ab871be0114248f8f547d57c816bb2d64d8e | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Wed Mar 31 21:18:55 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Mar 31 21:18:55 2021 +0000 |
tree | 114bd080daec2e029a0ee29c6cf0b7235a8cbd2d | |
parent | a0335554d1f3f05cf90c723dd7f64e2bee33a11f [diff] | |
parent | a89d08fdc4410a4f5b0bd32da9fa801cbe514696 [diff] |
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
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