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

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

Issue 16703022: Make ifdef condition consistent in platform_thread_linux.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | 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"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/safe_strerror_posix.h" 13 #include "base/safe_strerror_posix.h"
14 #include "base/threading/thread_id_name_manager.h" 14 #include "base/threading/thread_id_name_manager.h"
15 #include "base/threading/thread_restrictions.h" 15 #include "base/threading/thread_restrictions.h"
16 #include "base/tracked_objects.h" 16 #include "base/tracked_objects.h"
17 17
18 #if defined(OS_LINUX) 18 #if !defined(OS_NACL)
19 #include <sys/prctl.h> 19 #include <sys/prctl.h>
20 #include <sys/resource.h> 20 #include <sys/resource.h>
21 #include <sys/syscall.h> 21 #include <sys/syscall.h>
22 #include <sys/time.h> 22 #include <sys/time.h>
23 #include <unistd.h> 23 #include <unistd.h>
24 #endif 24 #endif
25 25
26 namespace base { 26 namespace base {
27 27
28 namespace { 28 namespace {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 void TerminateOnThread() { 109 void TerminateOnThread() {
110 } 110 }
111 111
112 size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) { 112 size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) {
113 return 0; 113 return 0;
114 } 114 }
115 115
116 } // namespace base 116 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698