aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
diff options
context:
space:
mode:
authorColm Donelan <Colm.Donelan@arm.com>2019-11-20 14:59:12 +0000
committerKeith Davis Arm <keith.davis@arm.com>2019-11-21 10:06:08 +0000
commit4cace320a75de835c08a87bb8aa3cfd0cd18ddfd (patch)
treefd07af2670e6c9829cbd4e5f519bafeb9b98aafc /src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
parentcf7c1c695fa5ef81334b8b5664905409a71ac852 (diff)
downloadarmnn-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/FileOnlyProfilingDecoratorTests.cpp')
-rw-r--r--src/profiling/test/FileOnlyProfilingDecoratorTests.cpp4
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.