| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } | 172 } |
| 173 | 173 |
| 174 // From MessageQueue | 174 // From MessageQueue |
| 175 void Clear(MessageHandler* phandler, | 175 void Clear(MessageHandler* phandler, |
| 176 uint32_t id = MQID_ANY, | 176 uint32_t id = MQID_ANY, |
| 177 MessageList* removed = NULL) override; | 177 MessageList* removed = NULL) override; |
| 178 void ReceiveSends() override; | 178 void ReceiveSends() override; |
| 179 | 179 |
| 180 // ProcessMessages will process I/O and dispatch messages until: | 180 // ProcessMessages will process I/O and dispatch messages until: |
| 181 // 1) cms milliseconds have elapsed (returns true) | 181 // 1) cms milliseconds have elapsed (returns true) |
| 182 // 2) Stop() is called (returns false) | 182 // 2) message_limit messages have been processed (by default: no limit) |
| 183 bool ProcessMessages(int cms); | 183 // 3) Stop() is called (returns false) |
| 184 bool ProcessMessages(int cms, int messages = 0); |
| 184 | 185 |
| 185 // Returns true if this is a thread that we created using the standard | 186 // Returns true if this is a thread that we created using the standard |
| 186 // constructor, false if it was created by a call to | 187 // constructor, false if it was created by a call to |
| 187 // ThreadManager::WrapCurrentThread(). The main thread of an application | 188 // ThreadManager::WrapCurrentThread(). The main thread of an application |
| 188 // is generally not owned, since the OS representation of the thread | 189 // is generally not owned, since the OS representation of the thread |
| 189 // obviously exists before we can get to it. | 190 // obviously exists before we can get to it. |
| 190 // You cannot call Start on non-owned threads. | 191 // You cannot call Start on non-owned threads. |
| 191 bool IsOwned(); | 192 bool IsOwned(); |
| 192 | 193 |
| 193 #if defined(WEBRTC_WIN) | 194 #if defined(WEBRTC_WIN) |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 330 |
| 330 private: | 331 private: |
| 331 SocketServer* old_ss_; | 332 SocketServer* old_ss_; |
| 332 | 333 |
| 333 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SocketServerScope); | 334 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SocketServerScope); |
| 334 }; | 335 }; |
| 335 | 336 |
| 336 } // namespace rtc | 337 } // namespace rtc |
| 337 | 338 |
| 338 #endif // WEBRTC_BASE_THREAD_H_ | 339 #endif // WEBRTC_BASE_THREAD_H_ |
| OLD | NEW |