From 702b92cdb80eac8fd3b5da3a96bfcfa622f7c7af Mon Sep 17 00:00:00 2001 From: Arnon Gilboa Date: Tue, 17 Nov 2009 16:47:41 +0200 Subject: spice: add [pid:tid] to log lines --- client/windows/platform.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'client/windows') 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); -- cgit