summaryrefslogtreecommitdiff
path: root/indra/llvfs/llpidlock.cpp
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2009-12-15 14:05:16 -0800
committerRick Pasetto <rick@lindenlab.com>2009-12-15 14:05:16 -0800
commit9cf8c3e654f38745c8a94cbd85609a17f482266a (patch)
tree8cd1586fef29a307b9ab2bbe3711d289efdeb871 /indra/llvfs/llpidlock.cpp
parent1f7bf9216869682aa88c9c92b6c15d2d5278902d (diff)
parent77aa787c019615d2fe68d31aa07434301535c992 (diff)
Automated merge with ssh://rick@hg.lindenlab.com/skolb/media/
Diffstat (limited to 'indra/llvfs/llpidlock.cpp')
-rwxr-xr-xindra/llvfs/llpidlock.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llvfs/llpidlock.cpp b/indra/llvfs/llpidlock.cpp
index 315baa001d..95e3692e10 100755
--- a/indra/llvfs/llpidlock.cpp
+++ b/indra/llvfs/llpidlock.cpp
@@ -41,6 +41,15 @@
#include "llframetimer.h"
#if LL_WINDOWS //For windows platform.
+
+#include <windows.h>
+
+namespace {
+ inline DWORD getpid() {
+ return GetCurrentProcessId();
+ }
+}
+
bool isProcessAlive(U32 pid)
{
return (bool) GetProcessVersion((DWORD)pid);