| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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_MODULES_UTILITY_SOURCE_PROCESS_THREAD_IMPL_H_ | 11 #ifndef WEBRTC_MODULES_UTILITY_SOURCE_PROCESS_THREAD_IMPL_H_ |
| 12 #define WEBRTC_MODULES_UTILITY_SOURCE_PROCESS_THREAD_IMPL_H_ | 12 #define WEBRTC_MODULES_UTILITY_SOURCE_PROCESS_THREAD_IMPL_H_ |
| 13 | 13 |
| 14 #include <list> | 14 #include <list> |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <queue> | 16 #include <queue> |
| 17 | 17 |
| 18 #include "webrtc/base/criticalsection.h" | |
| 19 #include "webrtc/base/location.h" | |
| 20 #include "webrtc/base/platform_thread.h" | |
| 21 #include "webrtc/base/thread_checker.h" | |
| 22 #include "webrtc/modules/utility/include/process_thread.h" | 18 #include "webrtc/modules/utility/include/process_thread.h" |
| 19 #include "webrtc/rtc_base/criticalsection.h" |
| 20 #include "webrtc/rtc_base/location.h" |
| 21 #include "webrtc/rtc_base/platform_thread.h" |
| 22 #include "webrtc/rtc_base/thread_checker.h" |
| 23 #include "webrtc/system_wrappers/include/event_wrapper.h" | 23 #include "webrtc/system_wrappers/include/event_wrapper.h" |
| 24 #include "webrtc/typedefs.h" | 24 #include "webrtc/typedefs.h" |
| 25 | 25 |
| 26 namespace webrtc { | 26 namespace webrtc { |
| 27 | 27 |
| 28 class ProcessThreadImpl : public ProcessThread { | 28 class ProcessThreadImpl : public ProcessThread { |
| 29 public: | 29 public: |
| 30 explicit ProcessThreadImpl(const char* thread_name); | 30 explicit ProcessThreadImpl(const char* thread_name); |
| 31 ~ProcessThreadImpl() override; | 31 ~ProcessThreadImpl() override; |
| 32 | 32 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 ModuleList modules_; | 80 ModuleList modules_; |
| 81 std::queue<rtc::QueuedTask*> queue_; | 81 std::queue<rtc::QueuedTask*> queue_; |
| 82 bool stop_; | 82 bool stop_; |
| 83 const char* thread_name_; | 83 const char* thread_name_; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace webrtc | 86 } // namespace webrtc |
| 87 | 87 |
| 88 #endif // WEBRTC_MODULES_UTILITY_SOURCE_PROCESS_THREAD_IMPL_H_ | 88 #endif // WEBRTC_MODULES_UTILITY_SOURCE_PROCESS_THREAD_IMPL_H_ |
| OLD | NEW |