diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-02-10 16:59:58 +0000 |
---|---|---|
committer | Finn Williams <Finn.Williams@arm.com> | 2020-02-10 16:59:58 +0000 |
commit | 7a16dcfe7253a07b1ba7c3ec66b737ef654183af (patch) | |
tree | 07e87e990846ace2915db74f49bcebe760e9db44 /src/profiling | |
parent | 3896b47a3532aadcde43a3e7fed760a0f4a29e6b (diff) | |
download | armnn-7a16dcfe7253a07b1ba7c3ec66b737ef654183af.tar.gz |
IVGCVSW-4424 Set minimum timeout for SendThread in WaitingForAck state
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: Iee7de5040e355933b7e14a39d44e9d51b30427c8
Diffstat (limited to 'src/profiling')
-rw-r--r-- | src/profiling/SendThread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profiling/SendThread.cpp b/src/profiling/SendThread.cpp index d595c9d4a5..0318a74901 100644 --- a/src/profiling/SendThread.cpp +++ b/src/profiling/SendThread.cpp @@ -156,7 +156,7 @@ void SendThread::Send(IProfilingConnection& profilingConnection) std::unique_lock<std::mutex> lock(m_WaitMutex); bool timeout = m_WaitCondition.wait_for(lock, - std::chrono::milliseconds(m_Timeout), + std::chrono::milliseconds(std::max(m_Timeout, 1000)), [&]{ return m_ReadyToRead; }); // If we get notified we need to flush the buffer again if(timeout) |