From 5bb3d8a1edeab3f4fdbeb9baf7922cc52bd815fb Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Tue, 12 May 2020 16:36:46 +0100 Subject: IVGCVSW-4775 Centralizing definition of ThreadIdSize to fix MLCE-189 * Introduce a constant definition of the size of a POSIX thread ID. * Update all code to use the new constant definition. * Update all unit tests to use the new constant definition. Signed-off-by: Colm Donelan Change-Id: I836ab1a77ed13f774e66fd7b425923c24b9a6dab --- src/armnn/test/RuntimeTests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/armnn') diff --git a/src/armnn/test/RuntimeTests.cpp b/src/armnn/test/RuntimeTests.cpp index 2fc4b50a54..c4a96263dd 100644 --- a/src/armnn/test/RuntimeTests.cpp +++ b/src/armnn/test/RuntimeTests.cpp @@ -835,8 +835,7 @@ BOOST_AUTO_TEST_CASE(ProfilingEnableCpuRef) // Validate inference data size = inferenceReadableBuffer->GetSize(); - unsigned int threadId_size = sizeof(std::thread::id); // Is platform dependent - BOOST_CHECK(size == 1208 + 8 * threadId_size); + BOOST_CHECK(size == 1208 + 8 * ThreadIdSize); readableData = inferenceReadableBuffer->GetReadableData(); BOOST_CHECK(readableData != nullptr); @@ -844,7 +843,7 @@ BOOST_AUTO_TEST_CASE(ProfilingEnableCpuRef) offset = 0; // Verify Header - VerifyTimelineHeaderBinary(readableData, offset, 1200 + 8 * threadId_size); + VerifyTimelineHeaderBinary(readableData, offset, 1200 + 8 * ThreadIdSize); // Inference timeline trace // Inference entity -- cgit v1.2.1