diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-03 11:21:18 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-03 11:53:34 +0100 |
commit | 61d6f7305b02e025ee10aa07e5499993a0e77cc1 (patch) | |
tree | 896078c3400939c6eb85fdd6e8d35eb6e66d3fab /src/profiling/BufferManager.cpp | |
parent | 342a8ba08a67fcbc6f179c32118ca2035002698d (diff) | |
download | armnn-61d6f7305b02e025ee10aa07e5499993a0e77cc1.tar.gz |
IVGCVSW-3440 Fix intermittently failing send thread test
* Simplified the implementation of the MockStreamCounterBuffer
* Minor refactoring
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I3aed97daee0ac32d384e1f830e8cc57aae84950b
Diffstat (limited to 'src/profiling/BufferManager.cpp')
-rw-r--r-- | src/profiling/BufferManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profiling/BufferManager.cpp b/src/profiling/BufferManager.cpp index 91ad1c5f3a..dbf4466bbb 100644 --- a/src/profiling/BufferManager.cpp +++ b/src/profiling/BufferManager.cpp @@ -32,8 +32,8 @@ std::unique_ptr<IPacketBuffer> BufferManager::Reserve(unsigned int requestedSize std::unique_lock<std::mutex> availableListLock(m_AvailableMutex, std::defer_lock); if (requestedSize > m_MaxBufferSize) { - throw armnn::RuntimeException("Maximum buffer size that can be requested is [" + - std::to_string(m_MaxBufferSize) + "] bytes"); + throw armnn::InvalidArgumentException("The maximum buffer size that can be requested is [" + + std::to_string(m_MaxBufferSize) + "] bytes"); } availableListLock.lock(); if (m_AvailableList.empty()) |