From 1fdeb99ca83bac83e0cacb332880e2e62dd22198 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Thu, 9 Jul 2020 07:28:37 +0100 Subject: IVGCVSW-5095 Make timeline report the Linux Thread ID not the pthread ID Change-Id: Id69519fd9ef57716de4e389ed4156710a904c701 Signed-off-by: Jim Flynn --- src/profiling/test/ProfilingTestUtils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/profiling/test/ProfilingTestUtils.cpp') diff --git a/src/profiling/test/ProfilingTestUtils.cpp b/src/profiling/test/ProfilingTestUtils.cpp index 9f6bc43be8..526f3f95fd 100644 --- a/src/profiling/test/ProfilingTestUtils.cpp +++ b/src/profiling/test/ProfilingTestUtils.cpp @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -295,7 +296,7 @@ ProfilingGuid VerifyTimelineEntityBinaryPacketData(Optional guid, } ProfilingGuid VerifyTimelineEventBinaryPacket(Optional timestamp, - Optional threadId, + Optional threadId, Optional eventGuid, const unsigned char* readableData, unsigned int& offset) @@ -333,7 +334,7 @@ ProfilingGuid VerifyTimelineEventBinaryPacket(Optional timestamp, } else { - BOOST_CHECK(readThreadId == std::this_thread::get_id()); + BOOST_CHECK(readThreadId == armnnUtils::Threads::GetCurrentThreadId()); } // Check the event GUID -- cgit v1.2.1