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

Side by Side Diff: base/threading/platform_thread_posix.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) 2011 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 <errno.h> 7 #include <errno.h>
8 #include <sched.h> 8 #include <sched.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 // static 216 // static
217 void PlatformThread::Join(PlatformThreadHandle thread_handle) { 217 void PlatformThread::Join(PlatformThreadHandle thread_handle) {
218 // Joining another thread may block the current thread for a long time, since 218 // Joining another thread may block the current thread for a long time, since
219 // the thread referred to by |thread_handle| may still be running long-lived / 219 // the thread referred to by |thread_handle| may still be running long-lived /
220 // blocking tasks. 220 // blocking tasks.
221 base::ThreadRestrictions::AssertIOAllowed(); 221 base::ThreadRestrictions::AssertIOAllowed();
222 pthread_join(thread_handle, NULL); 222 pthread_join(thread_handle, NULL);
223 } 223 }
224 224
225 #if !defined(OS_MACOSX)
226 // Mac OS X uses lower-level mach APIs
227
228 // static
229 void PlatformThread::SetThreadPriority(PlatformThreadHandle, ThreadPriority) {
230 // TODO(crogers): implement
brettw 2011/05/12 22:26:03 This should use the NOTIMPLEMENTED macro.
Chris Rogers 2011/05/12 23:01:55 Done.
231 }
232 #endif
233
225 } // namespace base 234 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698