mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Clients report their PIDs so the memory usage can be monitored.
This commit is contained in:
@ -79,4 +79,14 @@ void setThreadName(long threadID, const std::string &name)
|
||||
#else
|
||||
//*nix counterpart?
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
si32 getMyPid()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return GetCurrentProcessId();
|
||||
#else
|
||||
return getpid();
|
||||
#endif
|
||||
}
|
Reference in New Issue
Block a user