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 |
11 #include "webrtc/system_wrappers/interface/data_log.h" | 11 #include "webrtc/system_wrappers/include/data_log.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 #include <list> | 16 #include <list> |
17 | 17 |
18 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 18 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
19 #include "webrtc/system_wrappers/interface/event_wrapper.h" | 19 #include "webrtc/system_wrappers/include/event_wrapper.h" |
20 #include "webrtc/system_wrappers/interface/file_wrapper.h" | 20 #include "webrtc/system_wrappers/include/file_wrapper.h" |
21 #include "webrtc/system_wrappers/interface/rw_lock_wrapper.h" | 21 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 DataLogImpl::CritSectScopedPtr DataLogImpl::crit_sect_( | 25 DataLogImpl::CritSectScopedPtr DataLogImpl::crit_sect_( |
26 CriticalSectionWrapper::CreateCriticalSection()); | 26 CriticalSectionWrapper::CreateCriticalSection()); |
27 | 27 |
28 DataLogImpl* DataLogImpl::instance_ = NULL; | 28 DataLogImpl* DataLogImpl::instance_ = NULL; |
29 | 29 |
30 // A Row contains cells, which are indexed by the column names as std::string. | 30 // A Row contains cells, which are indexed by the column names as std::string. |
31 // The string index is treated in a case sensitive way. | 31 // The string index is treated in a case sensitive way. |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 } | 435 } |
436 | 436 |
437 void DataLogImpl::StopThread() { | 437 void DataLogImpl::StopThread() { |
438 if (file_writer_thread_) { | 438 if (file_writer_thread_) { |
439 flush_event_->Set(); | 439 flush_event_->Set(); |
440 file_writer_thread_->Stop(); | 440 file_writer_thread_->Stop(); |
441 } | 441 } |
442 } | 442 } |
443 | 443 |
444 } // namespace webrtc | 444 } // namespace webrtc |
OLD | NEW |