| 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_SIGNALTHREAD_H_ | 11 #ifndef WEBRTC_RTC_BASE_SIGNALTHREAD_H_ | 
| 12 #define WEBRTC_RTC_BASE_SIGNALTHREAD_H_ | 12 #define WEBRTC_RTC_BASE_SIGNALTHREAD_H_ | 
| 13 | 13 | 
| 14 #include <string> | 14 #include <string> | 
| 15 | 15 | 
| 16 #include "webrtc/base/checks.h" | 16 #include "webrtc/rtc_base/checks.h" | 
| 17 #include "webrtc/base/constructormagic.h" | 17 #include "webrtc/rtc_base/constructormagic.h" | 
| 18 #include "webrtc/base/nullsocketserver.h" | 18 #include "webrtc/rtc_base/nullsocketserver.h" | 
| 19 #include "webrtc/base/sigslot.h" | 19 #include "webrtc/rtc_base/sigslot.h" | 
| 20 #include "webrtc/base/thread.h" | 20 #include "webrtc/rtc_base/thread.h" | 
| 21 | 21 | 
| 22 namespace rtc { | 22 namespace rtc { | 
| 23 | 23 | 
| 24 /////////////////////////////////////////////////////////////////////////////// | 24 /////////////////////////////////////////////////////////////////////////////// | 
| 25 // SignalThread - Base class for worker threads.  The main thread should call | 25 // SignalThread - Base class for worker threads.  The main thread should call | 
| 26 //  Start() to begin work, and then follow one of these models: | 26 //  Start() to begin work, and then follow one of these models: | 
| 27 //   Normal: Wait for SignalWorkDone, and then call Release to destroy. | 27 //   Normal: Wait for SignalWorkDone, and then call Release to destroy. | 
| 28 //   Cancellation: Call Release(true), to abort the worker thread. | 28 //   Cancellation: Call Release(true), to abort the worker thread. | 
| 29 //   Fire-and-forget: Call Release(false), which allows the thread to run to | 29 //   Fire-and-forget: Call Release(false), which allows the thread to run to | 
| 30 //    completion, and then self-destruct without further notification. | 30 //    completion, and then self-destruct without further notification. | 
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 152   int refcount_; | 152   int refcount_; | 
| 153 | 153 | 
| 154   RTC_DISALLOW_COPY_AND_ASSIGN(SignalThread); | 154   RTC_DISALLOW_COPY_AND_ASSIGN(SignalThread); | 
| 155 }; | 155 }; | 
| 156 | 156 | 
| 157 /////////////////////////////////////////////////////////////////////////////// | 157 /////////////////////////////////////////////////////////////////////////////// | 
| 158 | 158 | 
| 159 }  // namespace rtc | 159 }  // namespace rtc | 
| 160 | 160 | 
| 161 #endif  // WEBRTC_RTC_BASE_SIGNALTHREAD_H_ | 161 #endif  // WEBRTC_RTC_BASE_SIGNALTHREAD_H_ | 
| OLD | NEW | 
|---|