Remove mutable from rtc::CriticalSection members.
rtc::CriticalSection is now lockable from const methods and no longer need to remain mutable. BUG= R=tommi@webrtc.org Review URL: https://codereview.webrtc.org/1613643004 Cr-Commit-Position: refs/heads/master@{#11367}
This commit is contained in:
@ -239,15 +239,15 @@ class AudioProcessingImpl : public AudioProcessing {
|
||||
EXCLUSIVE_LOCKS_REQUIRED(crit_capture_);
|
||||
|
||||
// Critical section.
|
||||
mutable rtc::CriticalSection crit_debug_;
|
||||
rtc::CriticalSection crit_debug_;
|
||||
|
||||
// Debug dump state.
|
||||
ApmDebugDumpState debug_dump_;
|
||||
#endif
|
||||
|
||||
// Critical sections.
|
||||
mutable rtc::CriticalSection crit_render_ ACQUIRED_BEFORE(crit_capture_);
|
||||
mutable rtc::CriticalSection crit_capture_;
|
||||
rtc::CriticalSection crit_render_ ACQUIRED_BEFORE(crit_capture_);
|
||||
rtc::CriticalSection crit_capture_;
|
||||
|
||||
// Structs containing the pointers to the submodules.
|
||||
rtc::scoped_ptr<ApmPublicSubmodules> public_submodules_;
|
||||
|
||||
@ -298,7 +298,7 @@ class FrameCounters {
|
||||
}
|
||||
|
||||
private:
|
||||
mutable rtc::CriticalSection crit_;
|
||||
rtc::CriticalSection crit_;
|
||||
int render_count GUARDED_BY(crit_) = 0;
|
||||
int capture_count GUARDED_BY(crit_) = 0;
|
||||
};
|
||||
|
||||
@ -202,7 +202,7 @@ class FrameCounters {
|
||||
}
|
||||
|
||||
private:
|
||||
mutable rtc::CriticalSection crit_;
|
||||
rtc::CriticalSection crit_;
|
||||
int render_count_ GUARDED_BY(crit_) = 0;
|
||||
int capture_count_ GUARDED_BY(crit_) = 0;
|
||||
};
|
||||
@ -221,7 +221,7 @@ class LockedFlag {
|
||||
}
|
||||
|
||||
private:
|
||||
mutable rtc::CriticalSection crit_;
|
||||
rtc::CriticalSection crit_;
|
||||
bool flag_ GUARDED_BY(crit_) = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user