| 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 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 class Worker : public Thread { | 105 class Worker : public Thread { |
| 106 public: | 106 public: |
| 107 explicit Worker(SignalThread* parent, bool use_socket_server) | 107 explicit Worker(SignalThread* parent, bool use_socket_server) |
| 108 : Thread(use_socket_server | 108 : Thread(use_socket_server |
| 109 ? SocketServer::CreateDefault() | 109 ? SocketServer::CreateDefault() |
| 110 : std::unique_ptr<SocketServer>(new NullSocketServer())), | 110 : std::unique_ptr<SocketServer>(new NullSocketServer())), |
| 111 parent_(parent) {} | 111 parent_(parent) {} |
| 112 ~Worker() override; | 112 ~Worker() override; |
| 113 void Run() override; | 113 void Run() override; |
| 114 bool WaitForProcess() override; |
| 114 | 115 |
| 115 private: | 116 private: |
| 116 SignalThread* parent_; | 117 SignalThread* parent_; |
| 117 | 118 |
| 118 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Worker); | 119 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Worker); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 class SCOPED_LOCKABLE EnterExit { | 122 class SCOPED_LOCKABLE EnterExit { |
| 122 public: | 123 public: |
| 123 explicit EnterExit(SignalThread* t) EXCLUSIVE_LOCK_FUNCTION(t->cs_) | 124 explicit EnterExit(SignalThread* t) EXCLUSIVE_LOCK_FUNCTION(t->cs_) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 151 int refcount_; | 152 int refcount_; |
| 152 | 153 |
| 153 RTC_DISALLOW_COPY_AND_ASSIGN(SignalThread); | 154 RTC_DISALLOW_COPY_AND_ASSIGN(SignalThread); |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 /////////////////////////////////////////////////////////////////////////////// | 157 /////////////////////////////////////////////////////////////////////////////// |
| 157 | 158 |
| 158 } // namespace rtc | 159 } // namespace rtc |
| 159 | 160 |
| 160 #endif // WEBRTC_BASE_SIGNALTHREAD_H_ | 161 #endif // WEBRTC_BASE_SIGNALTHREAD_H_ |
| OLD | NEW |