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 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 sprintf(traceMessage, "%s (error=%d)", msg, error); | 74 sprintf(traceMessage, "%s (error=%d)", msg, error); |
75 | 75 |
76 WEBRTC_TRACE(level, kTraceVoice, VoEId(_instanceId,-1), "%s", | 76 WEBRTC_TRACE(level, kTraceVoice, VoEId(_instanceId,-1), "%s", |
77 traceMessage); | 77 traceMessage); |
78 | 78 |
79 rtc::CritScope cs(&lock_); | 79 rtc::CritScope cs(&lock_); |
80 _lastError = error; | 80 _lastError = error; |
81 return 0; | 81 return 0; |
82 } | 82 } |
83 | 83 |
84 int32_t Statistics::LastError() const | |
85 { | |
86 int32_t ret; | |
87 { | |
88 rtc::CritScope cs(&lock_); | |
89 ret = _lastError; | |
90 } | |
91 WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId, -1), | |
92 "LastError() => %d", ret); | |
93 return ret; | |
94 } | |
95 | |
96 } // namespace voe | 84 } // namespace voe |
97 | 85 |
98 } // namespace webrtc | 86 } // namespace webrtc |
OLD | NEW |