| 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 // WARNING: You should *NOT* be using this class directly. PlatformThread is | 5 // WARNING: You should *NOT* be using this class directly. PlatformThread is |
| 6 // the low-level platform-specific abstraction to the OS's threading interface. | 6 // the low-level platform-specific abstraction to the OS's threading interface. |
| 7 // You should instead be using a message-loop driven Thread, see thread.h. | 7 // You should instead be using a message-loop driven Thread, see thread.h. |
| 8 | 8 |
| 9 #ifndef BASE_THREADING_PLATFORM_THREAD_H_ | 9 #ifndef BASE_THREADING_PLATFORM_THREAD_H_ |
| 10 #define BASE_THREADING_PLATFORM_THREAD_H_ | 10 #define BASE_THREADING_PLATFORM_THREAD_H_ |
| 11 #pragma once | |
| 12 | 11 |
| 13 #include "base/base_export.h" | 12 #include "base/base_export.h" |
| 14 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 15 #include "base/time.h" | 14 #include "base/time.h" |
| 16 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 17 | 16 |
| 18 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 19 #include <windows.h> | 18 #include <windows.h> |
| 20 #elif defined(OS_POSIX) | 19 #elif defined(OS_POSIX) |
| 21 #include <pthread.h> | 20 #include <pthread.h> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 static void SetThreadPriority(PlatformThreadHandle handle, | 111 static void SetThreadPriority(PlatformThreadHandle handle, |
| 113 ThreadPriority priority); | 112 ThreadPriority priority); |
| 114 | 113 |
| 115 private: | 114 private: |
| 116 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread); | 115 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread); |
| 117 }; | 116 }; |
| 118 | 117 |
| 119 } // namespace base | 118 } // namespace base |
| 120 | 119 |
| 121 #endif // BASE_THREADING_PLATFORM_THREAD_H_ | 120 #endif // BASE_THREADING_PLATFORM_THREAD_H_ |
| OLD | NEW |