Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: webrtc/rtc_base/thread.h

Issue 3008193002: Revert of Rename thread annotation macros to have RTC prefix for syncrhonization primitives. (Closed)
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/rtc_base/task_queue.h ('k') | webrtc/rtc_base/thread_annotations.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 protected: 94 protected:
95 Runnable() {} 95 Runnable() {}
96 96
97 private: 97 private:
98 RTC_DISALLOW_COPY_AND_ASSIGN(Runnable); 98 RTC_DISALLOW_COPY_AND_ASSIGN(Runnable);
99 }; 99 };
100 100
101 // WARNING! SUBCLASSES MUST CALL Stop() IN THEIR DESTRUCTORS! See ~Thread(). 101 // WARNING! SUBCLASSES MUST CALL Stop() IN THEIR DESTRUCTORS! See ~Thread().
102 102
103 class RTC_LOCKABLE Thread : public MessageQueue { 103 class LOCKABLE Thread : public MessageQueue {
104 public: 104 public:
105 // DEPRECATED. 105 // DEPRECATED.
106 // The default constructor should not be used because it hides whether or 106 // The default constructor should not be used because it hides whether or
107 // not a socket server will be associated with the thread. Most instances 107 // not a socket server will be associated with the thread. Most instances
108 // of Thread do actually not need one, so please use either of the Create* 108 // of Thread do actually not need one, so please use either of the Create*
109 // methods to construct an instance of Thread. 109 // methods to construct an instance of Thread.
110 Thread(); 110 Thread();
111 111
112 explicit Thread(SocketServer* ss); 112 explicit Thread(SocketServer* ss);
113 explicit Thread(std::unique_ptr<SocketServer> ss); 113 explicit Thread(std::unique_ptr<SocketServer> ss);
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 328
329 private: 329 private:
330 rtc::Thread* old_thread_; 330 rtc::Thread* old_thread_;
331 331
332 RTC_DISALLOW_COPY_AND_ASSIGN(AutoSocketServerThread); 332 RTC_DISALLOW_COPY_AND_ASSIGN(AutoSocketServerThread);
333 }; 333 };
334 334
335 } // namespace rtc 335 } // namespace rtc
336 336
337 #endif // WEBRTC_RTC_BASE_THREAD_H_ 337 #endif // WEBRTC_RTC_BASE_THREAD_H_
OLDNEW
« no previous file with comments | « webrtc/rtc_base/task_queue.h ('k') | webrtc/rtc_base/thread_annotations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698