summaryrefslogtreecommitdiffstats
path: root/client/windows
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2009-11-17 16:47:41 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-03 17:37:20 +0200
commit702b92cdb80eac8fd3b5da3a96bfcfa622f7c7af (patch)
tree4151f7b93875285fdbedfe0fdb5639f5fff154c2 /client/windows
parent18270e02353786a64e01a303ac4db5fa05e05eeb (diff)
downloadspice-702b92cdb80eac8fd3b5da3a96bfcfa622f7c7af.tar.gz
spice-702b92cdb80eac8fd3b5da3a96bfcfa622f7c7af.tar.xz
spice-702b92cdb80eac8fd3b5da3a96bfcfa622f7c7af.zip
spice: add [pid:tid] to log lines
Diffstat (limited to 'client/windows')
-rw-r--r--client/windows/platform.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp
index 6b218404..6d5deba5 100644
--- a/client/windows/platform.cpp
+++ b/client/windows/platform.cpp
@@ -207,6 +207,17 @@ void Platform::get_temp_dir(std::string& path)
delete[] tmp_path;
}
+uint64_t Platform::get_process_id()
+{
+ static uint64_t pid = GetCurrentProcessId();
+ return pid;
+}
+
+uint64_t Platform::get_thread_id()
+{
+ return GetCurrentThreadId();
+}
+
class WinMonitor: public Monitor {
public:
WinMonitor(int id, const wchar_t* name, const wchar_t* string);