diff options
author | Finn Williams <Finn.Williams@arm.com> | 2019-10-31 11:15:06 +0000 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-31 14:07:22 +0000 |
commit | 7be12b8bb5d682687890588e800733c264fab446 (patch) | |
tree | 21d4a64436776261f71f650b39a901f2d9f7706c | |
parent | b4e6720edc20ac561716a4681ae1e72c8489f619 (diff) | |
download | armnn-7be12b8bb5d682687890588e800733c264fab446.tar.gz |
IVGCVSW-4049 Fix potential threading issue with the SendCounterPacket thread
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I311270dac0ba90b04e3488572e6b045546114a12
-rw-r--r-- | src/profiling/SendCounterPacket.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/profiling/SendCounterPacket.cpp b/src/profiling/SendCounterPacket.cpp index 382f958fca..dcba156e93 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); |