SWDEV-369548 - Added getProcessId function in Os:: and change log functions to use that.

Change-Id: Ib64ee4d65a5212af7a4a95f80173b7ff8382340f
This commit is contained in:
Ioannis Assiouras
2022-12-02 17:22:04 +00:00
parent 8c582a02ef
commit 7631ba8b4d
5 changed files with 16 additions and 4 deletions
+4
View File
@@ -919,6 +919,10 @@ bool Os::MemoryMapFileTruncated(const char* fname, const void** mmap_ptr, size_t
return true;
}
int Os::getProcessId() {
return ::getpid();
}
} // namespace amd
#endif // !defined(_WIN32) && !defined(__CYGWIN__)