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

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

Issue 9521010: Remove NOTIMPLEMENTED() from PlatformThread::SetThreadPriority() for posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | base/threading/platform_thread_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // static 241 // static
242 void PlatformThread::Join(PlatformThreadHandle thread_handle) { 242 void PlatformThread::Join(PlatformThreadHandle thread_handle) {
243 // Joining another thread may block the current thread for a long time, since 243 // Joining another thread may block the current thread for a long time, since
244 // the thread referred to by |thread_handle| may still be running long-lived / 244 // the thread referred to by |thread_handle| may still be running long-lived /
245 // blocking tasks. 245 // blocking tasks.
246 base::ThreadRestrictions::AssertIOAllowed(); 246 base::ThreadRestrictions::AssertIOAllowed();
247 pthread_join(thread_handle, NULL); 247 pthread_join(thread_handle, NULL);
248 } 248 }
249 249
250 #if !defined(OS_MACOSX) 250 #if !defined(OS_MACOSX)
251 // Mac OS X uses lower-level mach APIs 251 // Mac OS X uses lower-level mach APIs.
252 252
253 // static 253 // static
254 void PlatformThread::SetThreadPriority(PlatformThreadHandle, ThreadPriority) { 254 void PlatformThread::SetThreadPriority(PlatformThreadHandle, ThreadPriority) {
255 // TODO(crogers): implement 255 // TODO(crogers): Implement, see http://crbug.com/116172
256 NOTIMPLEMENTED();
257 } 256 }
258 #endif 257 #endif
259 258
260 } // namespace base 259 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | base/threading/platform_thread_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698