commit | 0252d5f97acef8f3824be0838b1717d011fb9046 | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Tue Mar 30 20:13:49 2021 -0700 |
committer | Michael Butler <butlermichael@google.com> | Tue Mar 30 20:14:41 2021 -0700 |
tree | 8ede883e9169d4afe3453e44c57ff67f91004b09 | |
parent | 2175ee289a9b16a77fdbce83213f831e94412a4b [diff] [blame] |
Add std::this_thread::yield to Burst NN polling loop Bug: N/A Test: mma Change-Id: Ibda55cfd031161614acc0c137cefb3b445548cc5
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