| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_RTC_BASE_THREAD_H_ | 11 #ifndef WEBRTC_RTC_BASE_THREAD_H_ |
| 12 #define WEBRTC_RTC_BASE_THREAD_H_ | 12 #define WEBRTC_RTC_BASE_THREAD_H_ |
| 13 | 13 |
| 14 #include <algorithm> | 14 #include <algorithm> |
| 15 #include <list> | 15 #include <list> |
| 16 #include <memory> | 16 #include <memory> |
| 17 #include <string> | 17 #include <string> |
| 18 #include <vector> | 18 #include <vector> |
| 19 | 19 |
| 20 #if defined(WEBRTC_POSIX) | 20 #if defined(WEBRTC_POSIX) |
| 21 #include <pthread.h> | 21 #include <pthread.h> |
| 22 #endif | 22 #endif |
| 23 #include "webrtc/base/constructormagic.h" | 23 #include "webrtc/rtc_base/constructormagic.h" |
| 24 #include "webrtc/base/event.h" | 24 #include "webrtc/rtc_base/event.h" |
| 25 #include "webrtc/base/messagequeue.h" | 25 #include "webrtc/rtc_base/messagequeue.h" |
| 26 #include "webrtc/base/platform_thread_types.h" | 26 #include "webrtc/rtc_base/platform_thread_types.h" |
| 27 | 27 |
| 28 #if defined(WEBRTC_WIN) | 28 #if defined(WEBRTC_WIN) |
| 29 #include "webrtc/base/win32.h" | 29 #include "webrtc/rtc_base/win32.h" |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 namespace rtc { | 32 namespace rtc { |
| 33 | 33 |
| 34 class Thread; | 34 class Thread; |
| 35 | 35 |
| 36 class ThreadManager { | 36 class ThreadManager { |
| 37 public: | 37 public: |
| 38 static const int kForever = -1; | 38 static const int kForever = -1; |
| 39 | 39 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 323 |
| 324 private: | 324 private: |
| 325 rtc::Thread* old_thread_; | 325 rtc::Thread* old_thread_; |
| 326 | 326 |
| 327 RTC_DISALLOW_COPY_AND_ASSIGN(AutoSocketServerThread); | 327 RTC_DISALLOW_COPY_AND_ASSIGN(AutoSocketServerThread); |
| 328 }; | 328 }; |
| 329 | 329 |
| 330 } // namespace rtc | 330 } // namespace rtc |
| 331 | 331 |
| 332 #endif // WEBRTC_RTC_BASE_THREAD_H_ | 332 #endif // WEBRTC_RTC_BASE_THREAD_H_ |
| OLD | NEW |