aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/SendThread.cpp
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2020-09-11 10:14:57 +0100
committerMatthew Sloyan <matthew.sloyan@arm.com>2020-09-29 08:01:57 +0000
commit371b70e39390618cbd791b441adcf3923964b8df (patch)
treeb869b0b3e5064e9c5abab8a02b111a497a6326d2 /src/profiling/SendThread.cpp
parent1f0e2f9dbf14a719aef09649b19a656a6b03c7ce (diff)
downloadarmnn-371b70e39390618cbd791b441adcf3923964b8df.tar.gz
IVGCVSW-5301 Remove all boost::numeric_cast from armnn/src/profiling
* Replaced with armnn/utility/NumericCast.hpp Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I14e89c00cd1dd607315113d5b8ca56c2e9f6c363
Diffstat (limited to 'src/profiling/SendThread.cpp')
-rw-r--r--src/profiling/SendThread.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/profiling/SendThread.cpp b/src/profiling/SendThread.cpp
index 86e6c05a02..16ef2399f7 100644
--- a/src/profiling/SendThread.cpp
+++ b/src/profiling/SendThread.cpp
@@ -8,10 +8,11 @@
#include <armnn/Exceptions.hpp>
#include <armnn/Conversion.hpp>
+#include <armnn/utility/NumericCast.hpp>
+
#include <Processes.hpp>
#include <boost/format.hpp>
-#include <boost/numeric/conversion/cast.hpp>
#include <cstring>
@@ -21,8 +22,6 @@ namespace armnn
namespace profiling
{
-using boost::numeric_cast;
-
SendThread::SendThread(armnn::profiling::ProfilingStateMachine& profilingStateMachine,
armnn::profiling::IBufferManager& buffer,
armnn::profiling::ISendCounterPacket& sendCounterPacket,
@@ -235,7 +234,7 @@ void SendThread::FlushBuffer(IProfilingConnection& profilingConnection, bool not
if (profilingConnection.IsOpen())
{
// Write a packet to the profiling connection. Silently ignore any write error and continue
- profilingConnection.WritePacket(readBuffer, boost::numeric_cast<uint32_t>(readBufferSize));
+ profilingConnection.WritePacket(readBuffer, armnn::numeric_cast<uint32_t>(readBufferSize));
// Set the flag that indicates whether at least a packet has been sent
packetsSent = true;