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

Side by Side Diff: base/threading/platform_thread_mac.mm

Issue 1660273004: base: Set initial thread priority in ThreadFunc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format and add comment Created 4 years, 10 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
« no previous file with comments | « base/threading/platform_thread_linux.cc ('k') | base/threading/platform_thread_posix.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 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #include <mach/mach.h> 8 #include <mach/mach.h>
9 #include <mach/mach_time.h> 9 #include <mach/mach_time.h>
10 #include <mach/thread_policy.h> 10 #include <mach/thread_policy.h>
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 stack_rlimit.rlim_cur != RLIM_INFINITY) { 209 stack_rlimit.rlim_cur != RLIM_INFINITY) {
210 default_stack_size = 210 default_stack_size =
211 std::max(std::max(default_stack_size, 211 std::max(std::max(default_stack_size,
212 static_cast<size_t>(PTHREAD_STACK_MIN)), 212 static_cast<size_t>(PTHREAD_STACK_MIN)),
213 static_cast<size_t>(stack_rlimit.rlim_cur)); 213 static_cast<size_t>(stack_rlimit.rlim_cur));
214 } 214 }
215 return default_stack_size; 215 return default_stack_size;
216 #endif 216 #endif
217 } 217 }
218 218
219 void InitOnThread() {
220 }
221
222 void TerminateOnThread() { 219 void TerminateOnThread() {
223 } 220 }
224 221
225 } // namespace base 222 } // namespace base
OLDNEW
« no previous file with comments | « base/threading/platform_thread_linux.cc ('k') | base/threading/platform_thread_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698