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

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

Issue 1550503002: Switch to standard integer types in base/threading/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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>
11 #include <stddef.h>
11 #include <sys/resource.h> 12 #include <sys/resource.h>
12 13
13 #include <algorithm> 14 #include <algorithm>
14 15
15 #include "base/lazy_instance.h" 16 #include "base/lazy_instance.h"
16 #include "base/logging.h" 17 #include "base/logging.h"
17 #include "base/mac/mach_logging.h" 18 #include "base/mac/mach_logging.h"
18 #include "base/threading/thread_id_name_manager.h" 19 #include "base/threading/thread_id_name_manager.h"
19 #include "base/tracked_objects.h" 20 #include "base/tracked_objects.h"
21 #include "build/build_config.h"
20 22
21 namespace base { 23 namespace base {
22 24
23 // If Cocoa is to be used on more than one thread, it must know that the 25 // If Cocoa is to be used on more than one thread, it must know that the
24 // application is multithreaded. Since it's possible to enter Cocoa code 26 // application is multithreaded. Since it's possible to enter Cocoa code
25 // from threads created by pthread_thread_create, Cocoa won't necessarily 27 // from threads created by pthread_thread_create, Cocoa won't necessarily
26 // be aware that the application is multithreaded. Spawning an NSThread is 28 // be aware that the application is multithreaded. Spawning an NSThread is
27 // enough to get Cocoa to set up for multithreaded operation, so this is done 29 // enough to get Cocoa to set up for multithreaded operation, so this is done
28 // if necessary before pthread_thread_create spawns any threads. 30 // if necessary before pthread_thread_create spawns any threads.
29 // 31 //
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 #endif 216 #endif
215 } 217 }
216 218
217 void InitOnThread() { 219 void InitOnThread() {
218 } 220 }
219 221
220 void TerminateOnThread() { 222 void TerminateOnThread() {
221 } 223 }
222 224
223 } // namespace base 225 } // 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