aboutsummaryrefslogtreecommitdiff
path: root/profiling/common/src/Threads.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'profiling/common/src/Threads.cpp')
-rw-r--r--profiling/common/src/Threads.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/profiling/common/src/Threads.cpp b/profiling/common/src/Threads.cpp
index 10533b77b9..d9e60167e8 100644
--- a/profiling/common/src/Threads.cpp
+++ b/profiling/common/src/Threads.cpp
@@ -26,6 +26,7 @@ namespace pipe
int GetCurrentThreadId()
{
+#if !defined(ARMNN_DISABLE_THREADS)
#if defined(__linux__)
return static_cast<int>(gettid());
#elif defined(_MSC_VER)
@@ -39,6 +40,9 @@ int GetCurrentThreadId()
}
return static_cast<int>(threadId);
#endif
+#else
+ return 0;
+#endif
}
} // namespace pipe