diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-16 00:27:43 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-16 14:42:34 +0000 |
commit | 9c85b41a9fcb3c64d7a686373e7dde75630ccd49 (patch) | |
tree | 49ec983ec1ba499d5a5a9240b69f8f4bb9ca2082 /src/armnnUtils | |
parent | 06ccd713391cca68dc8ab53b84bf058723ae55ab (diff) | |
download | armnn-9c85b41a9fcb3c64d7a686373e7dde75630ccd49.tar.gz |
IVGCVSW-6852 Break the remaining dependencies on Arm NN in the profiling code
Change-Id: I18b8ca22896567904768170350ee5eb22edd4a22
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/armnnUtils')
-rw-r--r-- | src/armnnUtils/Threads.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/armnnUtils/Threads.cpp b/src/armnnUtils/Threads.cpp deleted file mode 100644 index 4cdea6654a..0000000000 --- a/src/armnnUtils/Threads.cpp +++ /dev/null @@ -1,45 +0,0 @@ -// -// Copyright © 2020 Arm Ltd and Contributors. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#include <armnnUtils/Threads.hpp> - -#if defined(__linux__) -#include <unistd.h> -#include <sys/syscall.h> -#define gettid() syscall(SYS_gettid) -#elif defined(_MSC_VER) -#include <common/include/WindowsWrapper.hpp> -#elif defined(__APPLE__) -#include "AvailabilityMacros.h" -#include <pthread.h> -#include <sys/syscall.h> -#include <sys/time.h> -#include <unistd.h> -#endif - -namespace armnnUtils -{ -namespace Threads -{ - -int GetCurrentThreadId() -{ -#if defined(__linux__) - return static_cast<int>(gettid()); -#elif defined(_MSC_VER) - return ::GetCurrentThreadId(); -#elif defined(__APPLE__) - uint64_t threadId; - int iRet = pthread_threadid_np(NULL, &threadId); - if (iRet != 0) - { - return 0; - } - return static_cast<int>(threadId); -#endif -} - -} -} |