Index: base/threading/platform_thread_win.cc |
=================================================================== |
--- base/threading/platform_thread_win.cc (revision 106687) |
+++ base/threading/platform_thread_win.cc (working copy) |
@@ -157,9 +157,19 @@ |
} |
// static |
-void PlatformThread::SetThreadPriority(PlatformThreadHandle, ThreadPriority) { |
- // TODO(crogers): implement |
- NOTIMPLEMENTED(); |
+void PlatformThread::SetThreadPriority(PlatformThreadHandle handle, |
+ ThreadPriority priority) { |
+ switch (priority) { |
+ case kThreadPriority_Normal: |
+ ::SetThreadPriority(handle, THREAD_PRIORITY_NORMAL); |
+ break; |
+ case kThreadPriority_RealtimeAudio: |
willchan no longer on Chromium
2011/10/25 20:26:27
I'm disappointed that kThreadPriority_RealtimeAudi
|
+ ::SetThreadPriority(handle, THREAD_PRIORITY_TIME_CRITICAL); |
+ break; |
+ default: |
+ NOTIMPLEMENTED(); |
+ break; |
+ } |
} |
} // namespace base |