| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |