| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |