From 4cace320a75de835c08a87bb8aa3cfd0cd18ddfd Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Wed, 20 Nov 2019 14:59:12 +0000 Subject: 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 Change-Id: Ied2302b508b6e4e6b50809c77e3f19115449d0b6 --- src/profiling/test/FileOnlyProfilingDecoratorTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/profiling/test/FileOnlyProfilingDecoratorTests.cpp') 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. -- cgit v1.2.1