ArmNN
 21.02
armnnUtils::Processes Namespace Reference

Functions

int GetCurrentId ()
 

Function Documentation

◆ GetCurrentId()

int GetCurrentId ( )

Definition at line 19 of file Processes.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), LoadedNetwork::MakeLoadedNetwork(), SendCounterPacket::SendStreamMetaDataPacket(), and VerifyPostOptimisationStructureTestImpl().

20 {
21 #if defined(__unix__) || defined(__APPLE__)
22  return getpid();
23 #elif defined(_MSC_VER)
24  return ::GetCurrentProcessId();
25 #endif
26 }