20.11
Processes.cpp
Go to the documentation of this file.
1
//
2
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#include "
Processes.hpp
"
7
8
#if defined(__unix__) || defined(__APPLE__)
9
#include <unistd.h>
10
#elif defined(_MSC_VER)
11
#include <common/include/WindowsWrapper.hpp>
12
#endif
13
14
namespace
armnnUtils
15
{
16
namespace
Processes
17
{
18
19
int
GetCurrentId
()
20
{
21
#if defined(__unix__) || defined(__APPLE__)
22
return
getpid();
23
#elif defined(_MSC_VER)
24
return ::GetCurrentProcessId();
25
#endif
26
}
27
28
}
29
}
armnnUtils::Processes::GetCurrentId
int GetCurrentId()
Definition:
Processes.cpp:19
Processes.hpp
armnnUtils
Definition:
DataLayoutIndexed.hpp:13
src
armnnUtils
Processes.cpp
Generated on Thu Nov 26 2020 11:04:24 for ArmNN by
1.8.13