aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/thread.cpp')
-rw-r--r--src/zencore/thread.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zencore/thread.cpp b/src/zencore/thread.cpp
index 52b1e5d4e..67a0878d0 100644
--- a/src/zencore/thread.cpp
+++ b/src/zencore/thread.cpp
@@ -1095,6 +1095,16 @@ GetCurrentThreadId()
#endif
}
+int
+GetProcessId(CreateProcResult ProcId)
+{
+#if ZEN_PLATFORM_WINDOWS
+ return static_cast<int>(::GetProcessId(ProcId));
+#else
+ return ProcId;
+#endif
+}
+
void
Sleep(int ms)
{