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

Unified Diff: webrtc/modules/audio_conference_mixer/source/time_scheduler.h

Issue 2785673002: Remove more CriticalSectionWrappers. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | webrtc/modules/audio_conference_mixer/source/time_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_conference_mixer/source/time_scheduler.h
diff --git a/webrtc/modules/audio_conference_mixer/source/time_scheduler.h b/webrtc/modules/audio_conference_mixer/source/time_scheduler.h
index d1897fa100112a02dff87d7bce501b7459111d5f..b155429b8b295ef4ceb7e155c0aaf3d81b5f64c0 100644
--- a/webrtc/modules/audio_conference_mixer/source/time_scheduler.h
+++ b/webrtc/modules/audio_conference_mixer/source/time_scheduler.h
@@ -11,17 +11,18 @@
// The TimeScheduler class keeps track of periodic events. It is non-drifting
// and keeps track of any missed periods so that it is possible to catch up.
// (compare to a metronome)
+#include "webrtc/base/criticalsection.h"
#ifndef WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_SOURCE_TIME_SCHEDULER_H_
#define WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_SOURCE_TIME_SCHEDULER_H_
namespace webrtc {
class CriticalSectionWrapper;
-class TimeScheduler
-{
+
+class TimeScheduler {
public:
TimeScheduler(const int64_t periodicityInMs);
- ~TimeScheduler();
+ ~TimeScheduler() = default;
// Signal that a periodic event has been triggered.
int32_t UpdateScheduler();
@@ -31,7 +32,7 @@ public:
int32_t TimeToNextUpdate(int64_t& updateTimeInMS) const;
private:
- CriticalSectionWrapper* _crit;
+ rtc::CriticalSection _crit;
bool _isStarted;
int64_t _lastPeriodMark; // In ns
« no previous file with comments | « no previous file | webrtc/modules/audio_conference_mixer/source/time_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698