aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ProfilingUtils.hpp
diff options
context:
space:
mode:
authorColm Donelan <Colm.Donelan@arm.com>2020-05-12 16:36:46 +0100
committerJim Flynn <jim.flynn@arm.com>2020-05-13 06:57:07 +0000
commit5bb3d8a1edeab3f4fdbeb9baf7922cc52bd815fb (patch)
treedde9b2ebeeccb81e089d1f4281dfbc3092bd626b /src/profiling/ProfilingUtils.hpp
parent0c8cb99db6dd8b1ea073ef7227b2872a3cb0b269 (diff)
downloadarmnn-5bb3d8a1edeab3f4fdbeb9baf7922cc52bd815fb.tar.gz
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 <Colm.Donelan@arm.com> Change-Id: I836ab1a77ed13f774e66fd7b425923c24b9a6dab
Diffstat (limited to 'src/profiling/ProfilingUtils.hpp')
-rw-r--r--src/profiling/ProfilingUtils.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/profiling/ProfilingUtils.hpp b/src/profiling/ProfilingUtils.hpp
index 127534a593..b9af456730 100644
--- a/src/profiling/ProfilingUtils.hpp
+++ b/src/profiling/ProfilingUtils.hpp
@@ -28,6 +28,8 @@ namespace armnn
namespace profiling
{
+constexpr unsigned int ThreadIdSize = sizeof(std::thread::id); // Is platform dependent
+
struct SwTraceHeader
{
uint8_t m_StreamVersion;