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 |