projects
/
platform
/
upstream
/
armnn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove BOM from files
[platform/upstream/armnn.git]
/
src
/
armnnUtils
/
Processes.cpp
1
//
2
// Copyright © 2020 Arm Ltd. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#include "Processes.hpp"
7
8
#if defined(__unix__)
9
#include <unistd.h>
10
#elif defined(_MSC_VER)
11
#include "WindowsWrapper.hpp"
12
#endif
13
14
namespace armnnUtils
15
{
16
namespace Processes
17
{
18
19
int GetCurrentId()
20
{
21
#if defined(__unix__)
22
return getpid();
23
#elif defined(_MSC_VER)
24
return ::GetCurrentProcessId();
25
#endif
26
}
27
28
}
29
}