From 3896b47a3532aadcde43a3e7fed760a0f4a29e6b Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Mon, 10 Feb 2020 12:24:15 +0000 Subject: IVGCVSW-4328 BufferManager running out of buffers crashes application * Refactored SendCounterPacket classes, separated SendCounterPacket from Send thread * Created ISendThread.hpp, IConsumer, SendThread.hpp and SendThread.cpp * Injected IConsumer to BufferManager to notify SendThread when packet is ready to read Signed-off-by: Sadik Armagan Change-Id: I80f0bb8b8401c6bfd1611f7760217c6fe35d7ad8 --- src/profiling/ProfilingService.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/profiling/ProfilingService.cpp') diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp index 5edb2b4026..c73f3b29ec 100644 --- a/src/profiling/ProfilingService.cpp +++ b/src/profiling/ProfilingService.cpp @@ -109,7 +109,7 @@ void ProfilingService::Update() m_CommandHandler.Stop(); // Stop the send thread (if running) - m_SendCounterPacket.Stop(false); + m_SendThread.Stop(false); // Stop the periodic counter capture thread (if running) m_PeriodicCounterCapture.Stop(); @@ -143,7 +143,7 @@ void ProfilingService::Update() // Start the send thread, while in "WaitingForAck" state it'll send out a "Stream MetaData" packet waiting for // a valid "Connection Acknowledged" packet confirming the connection - m_SendCounterPacket.Start(*m_ProfilingConnection); + m_SendThread.Start(*m_ProfilingConnection); // The connection acknowledged command handler will automatically transition the state to "Active" once a // valid "Connection Acknowledged" packet has been received @@ -419,7 +419,7 @@ void ProfilingService::Stop() m_CommandHandler.Stop(); m_PeriodicCounterCapture.Stop(); // The the consuming thread - m_SendCounterPacket.Stop(false); + m_SendThread.Stop(false); // ...then close and destroy the profiling connection... if (m_ProfilingConnection != nullptr && m_ProfilingConnection->IsOpen()) -- cgit v1.2.1