Adding thread handle to logging.

This commit is contained in:
Ben Vanik
2015-08-29 20:49:17 -07:00
parent c486fcfcba
commit a86b3821f2
11 changed files with 113 additions and 49 deletions

View File

@@ -35,7 +35,7 @@ void EnableAffinityConfiguration() {
SetProcessAffinityMask(process_handle, system_affinity_mask);
}
uint32_t current_thread_id() {
uint32_t current_thread_system_id() {
return static_cast<uint32_t>(GetCurrentThreadId());
}
@@ -358,7 +358,7 @@ class Win32Thread : public Win32Handle<Thread> {
}
int32_t priority() override { return GetThreadPriority(handle_); }
uint32_t id() const override { return GetThreadId(handle_); }
uint32_t system_id() const override { return GetThreadId(handle_); }
void set_priority(int32_t new_priority) override {
SetThreadPriority(handle_, new_priority);