aboutsummaryrefslogtreecommitdiff
path: root/src/armnnUtils/Processes.cpp
blob: 8b401d41457b7fb49177a831f27b2acf2e3e38a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//

#include "Processes.hpp"

#if defined(__unix__) || defined(__APPLE__)
#include <unistd.h>
#elif defined(_MSC_VER)
#include <common/include/WindowsWrapper.hpp>
#endif

namespace armnnUtils
{
namespace Processes
{

int GetCurrentId()
{
#if defined(__unix__) || defined(__APPLE__)
    return getpid();
#elif defined(_MSC_VER)
    return ::GetCurrentProcessId();
#endif
}

}
}