Index: base/threading/platform_thread_mac.mm |
diff --git a/base/threading/platform_thread_mac.mm b/base/threading/platform_thread_mac.mm |
index 813cae26d2b4dd926e85cb88bdc91d4c557334c5..1ecbcd6ad91b970d163598b7a1b327caf46900ed 100644 |
--- a/base/threading/platform_thread_mac.mm |
+++ b/base/threading/platform_thread_mac.mm |
@@ -155,10 +155,10 @@ void SetPriorityRealtimeAudio(mach_port_t mach_thread_id) { |
} // anonymous namespace |
// static |
-void PlatformThread::SetThreadPriority(PlatformThreadHandle handle, |
- ThreadPriority priority) { |
+void PlatformThread::SetCurrentThreadPriority(ThreadPriority priority) { |
// Convert from pthread_t to mach thread identifier. |
- mach_port_t mach_thread_id = pthread_mach_thread_np(handle.platform_handle()); |
+ mach_port_t mach_thread_id = |
+ pthread_mach_thread_np(PlatformThread::CurrentHandle().platform_handle()); |
switch (priority) { |
case ThreadPriority::NORMAL: |
@@ -174,7 +174,7 @@ void PlatformThread::SetThreadPriority(PlatformThreadHandle handle, |
} |
// static |
-ThreadPriority PlatformThread::GetThreadPriority(PlatformThreadHandle handle) { |
+ThreadPriority PlatformThread::GetCurrentThreadPriority() { |
NOTIMPLEMENTED(); |
return ThreadPriority::NORMAL; |
} |