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

Unified Diff: webrtc/voice_engine/statistics.h

Issue 1607353002: Swap use of CriticalSectionWrapper with rtc::CriticalSection in voice_engine/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix bug in monitor_module.cc Created 4 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/voice_engine/shared_data.cc ('k') | webrtc/voice_engine/statistics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/statistics.h
diff --git a/webrtc/voice_engine/statistics.h b/webrtc/voice_engine/statistics.h
index 3dab91625d16920825822ae25c388d948e71e2fc..e853e6854e7a65a32fba073217bdabf65fa66699 100644
--- a/webrtc/voice_engine/statistics.h
+++ b/webrtc/voice_engine/statistics.h
@@ -11,14 +11,13 @@
#ifndef WEBRTC_VOICE_ENGINE_STATISTICS_H
#define WEBRTC_VOICE_ENGINE_STATISTICS_H
+#include "webrtc/base/criticalsection.h"
#include "webrtc/common_types.h"
#include "webrtc/typedefs.h"
#include "webrtc/voice_engine/include/voe_errors.h"
#include "webrtc/voice_engine/voice_engine_defines.h"
namespace webrtc {
-class CriticalSectionWrapper;
-
namespace voe {
class Statistics
@@ -40,7 +39,7 @@ class Statistics
int32_t LastError() const;
private:
- CriticalSectionWrapper* _critPtr;
+ mutable rtc::CriticalSection lock_;
const uint32_t _instanceId;
mutable int32_t _lastError;
bool _isInitialized;
« no previous file with comments | « webrtc/voice_engine/shared_data.cc ('k') | webrtc/voice_engine/statistics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698