OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // Collection of tables indexed by the table name as std::string. | 140 // Collection of tables indexed by the table name as std::string. |
141 typedef std::map<std::string, LogTable*> TableMap; | 141 typedef std::map<std::string, LogTable*> TableMap; |
142 typedef rtc::scoped_ptr<CriticalSectionWrapper> CritSectScopedPtr; | 142 typedef rtc::scoped_ptr<CriticalSectionWrapper> CritSectScopedPtr; |
143 | 143 |
144 static CritSectScopedPtr crit_sect_; | 144 static CritSectScopedPtr crit_sect_; |
145 static DataLogImpl* instance_; | 145 static DataLogImpl* instance_; |
146 int counter_; | 146 int counter_; |
147 TableMap tables_; | 147 TableMap tables_; |
148 EventWrapper* flush_event_; | 148 EventWrapper* flush_event_; |
149 rtc::scoped_ptr<PlatformThread> file_writer_thread_; | 149 // This is a scoped_ptr so that we don't have to create threads in the no-op |
| 150 // impl. |
| 151 rtc::scoped_ptr<rtc::PlatformThread> file_writer_thread_; |
150 RWLockWrapper* tables_lock_; | 152 RWLockWrapper* tables_lock_; |
151 }; | 153 }; |
152 | 154 |
153 } // namespace webrtc | 155 } // namespace webrtc |
154 | 156 |
155 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_DATA_LOG_IMPL_H_ | 157 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_DATA_LOG_IMPL_H_ |
OLD | NEW |