CppCommon  1.0.4.1
C++ Common Library
process.inl
Go to the documentation of this file.
1 
9 namespace CppCommon {
10 
12 {
13  return Process(CurrentProcessId());
14 }
15 
17 {
18  return Process(ParentProcessId());
19 }
20 
21 inline void swap(Process& process1, Process& process2) noexcept
22 {
23  process1.swap(process2);
24 }
25 
26 } // namespace CppCommon
Process abstraction.
Definition: process.h:38
static Process ParentProcess()
Get the parent process.
Definition: process.inl:16
static Process CurrentProcess()
Get the current process.
Definition: process.inl:11
static uint64_t ParentProcessId() noexcept
Get the parent process Id.
Definition: process.cpp:545
static uint64_t CurrentProcessId() noexcept
Get the current process Id.
Definition: process.cpp:544
C++ Common project definitions.
Definition: token_bucket.h:15
void swap(FileCache &cache1, FileCache &cache2) noexcept
Definition: filecache.inl:23