diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2019-11-20 14:59:12 +0000 |
---|---|---|
committer | Keith Davis Arm <keith.davis@arm.com> | 2019-11-21 10:06:08 +0000 |
commit | 4cace320a75de835c08a87bb8aa3cfd0cd18ddfd (patch) | |
tree | fd07af2670e6c9829cbd4e5f519bafeb9b98aafc /src/profiling/test | |
parent | cf7c1c695fa5ef81334b8b5664905409a71ac852 (diff) | |
download | armnn-4cace320a75de835c08a87bb8aa3cfd0cd18ddfd.tar.gz |
IVGCVSW-4124 Replacing the "sleep_for" loop from FileOnlyProfilingConnection
* Replacing the "sleep_for" loop in FileOnlyProfilingConnection with
a producer consumer conditional mutex.
* Reducing the times sleep loop times in FileOnlyProfilingDecoratorTests.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: Ied2302b508b6e4e6b50809c77e3f19115449d0b6
Diffstat (limited to 'src/profiling/test')
-rw-r--r-- | src/profiling/test/FileOnlyProfilingDecoratorTests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp index 5524ed4fbf..d4907b6365 100644 --- a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp +++ b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp @@ -45,8 +45,8 @@ BOOST_AUTO_TEST_CASE(DumpOutgoingValidFileEndToEnd) profilingService.Update(); profilingService.Update(); - uint32_t timeout = 2000; - uint32_t sleepTime = 50; + uint32_t timeout = 25; // Wait for a maximum of 25mSec + uint32_t sleepTime = 1; // in 1mSec intervals. uint32_t timeSlept = 0; // Give the profiling service sending thread time start executing and send the stream metadata. |