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

Side by Side Diff: webrtc/system_wrappers/include/data_log_impl.h

Issue 1476453002: Clean up PlatformThread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IsRunning DCHECK Created 5 years 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) 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698