1
0
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:
Michał W. Urbańczyk
2011-10-23 00:50:00 +00:00
parent 92e508fe1f
commit 8de4a4aef2
5 changed files with 27 additions and 8 deletions

View File

@ -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
}