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

Side by Side Diff: webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.h

Issue 2708723003: Introduce new constructor to PlatformThread. (Closed)
Patch Set: Disable RTC_DCHECK in channel_proxy + add TODO Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // This function MUST be called once a STOP_FILE message is added to the 74 // This function MUST be called once a STOP_FILE message is added to the
75 // signalling queue. The function will make sure that the output thread 75 // signalling queue. The function will make sure that the output thread
76 // wakes up to read the message, and it blocks until the output thread has 76 // wakes up to read the message, and it blocks until the output thread has
77 // finished writing to the file. 77 // finished writing to the file.
78 void WaitForFileFinished(); 78 void WaitForFileFinished();
79 79
80 // This fuction MUST be called once an event is added to the event queue. 80 // This fuction MUST be called once an event is added to the event queue.
81 void SignalNewEvent(); 81 void SignalNewEvent();
82 82
83 private: 83 private:
84 static bool ThreadOutputFunction(void* obj); 84 static void ThreadOutputFunction(void* obj);
85 85
86 bool AppendEventToString(rtclog::Event* event); 86 bool AppendEventToString(rtclog::Event* event);
87 bool LogToMemory(); 87 bool LogToMemory();
88 void StartLogFile(); 88 void StartLogFile();
89 bool LogToFile(); 89 bool LogToFile();
90 void StopLogFile(); 90 void StopLogFile();
91 void ProcessEvents(); 91 void ProcessEvents();
92 92
93 // Message queues for passing events to the logging thread. 93 // Message queues for passing events to the logging thread.
94 SwapQueue<ControlMessage>* message_queue_; 94 SwapQueue<ControlMessage>* message_queue_;
(...skipping 24 matching lines...) Expand all
119 rtc::Event file_finished_; 119 rtc::Event file_finished_;
120 120
121 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RtcEventLogHelperThread); 121 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RtcEventLogHelperThread);
122 }; 122 };
123 123
124 } // namespace webrtc 124 } // namespace webrtc
125 125
126 #endif // ENABLE_RTC_EVENT_LOG 126 #endif // ENABLE_RTC_EVENT_LOG
127 127
128 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_HELPER_THREAD_H_ 128 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_HELPER_THREAD_H_
OLDNEW
« no previous file with comments | « webrtc/common_video/incoming_video_stream.cc ('k') | webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698