Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: base/threading/platform_thread_win.cc

Issue 6949009: Add support for real-time audio threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/threading/platform_thread.h" 5 #include "base/threading/platform_thread.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/threading/thread_restrictions.h" 8 #include "base/threading/thread_restrictions.h"
9 #include "base/win/windows_version.h" 9 #include "base/win/windows_version.h"
10 10
11 namespace base { 11 namespace base {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #endif 137 #endif
138 138
139 // Wait for the thread to exit. It should already have terminated but make 139 // Wait for the thread to exit. It should already have terminated but make
140 // sure this assumption is valid. 140 // sure this assumption is valid.
141 DWORD result = WaitForSingleObject(thread_handle, INFINITE); 141 DWORD result = WaitForSingleObject(thread_handle, INFINITE);
142 DCHECK_EQ(WAIT_OBJECT_0, result); 142 DCHECK_EQ(WAIT_OBJECT_0, result);
143 143
144 CloseHandle(thread_handle); 144 CloseHandle(thread_handle);
145 } 145 }
146 146
147 // static
148 void PlatformThread::SetThreadPriority(PlatformThreadHandle, ThreadPriority) {
149 // TODO(crogers): implement
brettw 2011/05/12 22:26:03 Ditto
Chris Rogers 2011/05/12 23:01:55 Done.
150 }
151
147 } // namespace base 152 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698