OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 <assert.h> | 11 #include <assert.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 | 13 |
14 #include "webrtc/voice_engine/statistics.h" | 14 #include "webrtc/voice_engine/statistics.h" |
15 | 15 |
16 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 16 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
17 #include "webrtc/system_wrappers/interface/trace.h" | 17 #include "webrtc/system_wrappers/include/trace.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 namespace voe { | 21 namespace voe { |
22 | 22 |
23 Statistics::Statistics(uint32_t instanceId) : | 23 Statistics::Statistics(uint32_t instanceId) : |
24 _critPtr(CriticalSectionWrapper::CreateCriticalSection()), | 24 _critPtr(CriticalSectionWrapper::CreateCriticalSection()), |
25 _instanceId(instanceId), | 25 _instanceId(instanceId), |
26 _lastError(0), | 26 _lastError(0), |
27 _isInitialized(false) | 27 _isInitialized(false) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 { | 90 { |
91 CriticalSectionScoped cs(_critPtr); | 91 CriticalSectionScoped cs(_critPtr); |
92 WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId,-1), | 92 WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId,-1), |
93 "LastError() => %d", _lastError); | 93 "LastError() => %d", _lastError); |
94 return _lastError; | 94 return _lastError; |
95 } | 95 } |
96 | 96 |
97 } // namespace voe | 97 } // namespace voe |
98 | 98 |
99 } // namespace webrtc | 99 } // namespace webrtc |
OLD | NEW |