From: Finn Williams Date: Thu, 31 Oct 2019 11:15:06 +0000 (+0000) Subject: IVGCVSW-4049 Fix potential threading issue with the SendCounterPacket thread X-Git-Tag: submit/tizen/20200316.035456~93 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7be12b8bb5d682687890588e800733c264fab446;p=platform%2Fupstream%2Farmnn.git IVGCVSW-4049 Fix potential threading issue with the SendCounterPacket thread Signed-off-by: Finn Williams Change-Id: I311270dac0ba90b04e3488572e6b045546114a12 --- diff --git a/src/profiling/SendCounterPacket.cpp b/src/profiling/SendCounterPacket.cpp index 382f958..dcba156 100644 --- a/src/profiling/SendCounterPacket.cpp +++ b/src/profiling/SendCounterPacket.cpp @@ -916,6 +916,11 @@ void SendCounterPacket::Start(IProfilingConnection& profilingConnection) return; } + if (m_SendThread.joinable()) + { + m_SendThread.join(); + } + // Mark the send thread as running m_IsRunning.store(true);