diff options
author | Markus Handell <handellm@webrtc.org> | 2020-07-16 16:16:09 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-17 09:19:50 +0000 |
commit | 3cb525b378fd9cb683b19b0d5f18946a85fdef34 (patch) | |
tree | a881bedd953ff4e4301addc5d1ea666a2029e6c5 /sdk | |
parent | 1a09faed62a4b28140ebd7404345785b52c1aa7b (diff) | |
download | webrtc-3cb525b378fd9cb683b19b0d5f18946a85fdef34.tar.gz |
Rename CriticalSection to RecursiveCriticalSection.
This name change communicates that the recursive critical section
should not be used for new code.
The relevant files are renamed rtc_base/critical_section* ->
rtc_base/deprecated/recursive_critical_section*
Bug: webrtc:11567
Change-Id: I73483a1c5e59c389407a981efbfc2cfe76ccdb43
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/179483
Commit-Queue: Markus Handell <handellm@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31754}
Diffstat (limited to 'sdk')
-rw-r--r-- | sdk/objc/components/audio/RTCAudioSession.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sdk/objc/components/audio/RTCAudioSession.mm b/sdk/objc/components/audio/RTCAudioSession.mm index 74b57acd61..520b2d1d37 100644 --- a/sdk/objc/components/audio/RTCAudioSession.mm +++ b/sdk/objc/components/audio/RTCAudioSession.mm @@ -16,7 +16,7 @@ #include "rtc_base/atomic_ops.h" #include "rtc_base/checks.h" -#include "rtc_base/critical_section.h" +#include "rtc_base/deprecated/recursive_critical_section.h" #import "RTCAudioSessionConfiguration.h" #import "base/RTCLogging.h" @@ -35,7 +35,7 @@ NSString * const kRTCAudioSessionOutputVolumeSelector = @"outputVolume"; // TODO(tkchin): Consider more granular locking. We're not expecting a lot of // lock contention so coarse locks should be fine for now. @implementation RTC_OBJC_TYPE (RTCAudioSession) { - rtc::CriticalSection _crit; + rtc::RecursiveCriticalSection _crit; AVAudioSession *_session; volatile int _activationCount; volatile int _lockRecursionCount; |