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

Side by Side Diff: webrtc/audio/audio_state.h

Issue 1613643004: Remove mutable from rtc::CriticalSection members. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « talk/media/devices/yuvframescapturer.cc ('k') | webrtc/base/bufferqueue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 29 matching lines...) Expand all
40 40
41 rtc::ThreadChecker thread_checker_; 41 rtc::ThreadChecker thread_checker_;
42 rtc::ThreadChecker process_thread_checker_; 42 rtc::ThreadChecker process_thread_checker_;
43 const webrtc::AudioState::Config config_; 43 const webrtc::AudioState::Config config_;
44 44
45 // We hold one interface pointer to the VoE to make sure it is kept alive. 45 // We hold one interface pointer to the VoE to make sure it is kept alive.
46 ScopedVoEInterface<VoEBase> voe_base_; 46 ScopedVoEInterface<VoEBase> voe_base_;
47 47
48 // The critical section isn't strictly needed in this case, but xSAN bots may 48 // The critical section isn't strictly needed in this case, but xSAN bots may
49 // trigger on unprotected cross-thread access. 49 // trigger on unprotected cross-thread access.
50 mutable rtc::CriticalSection crit_sect_; 50 rtc::CriticalSection crit_sect_;
51 bool typing_noise_detected_ GUARDED_BY(crit_sect_) = false; 51 bool typing_noise_detected_ GUARDED_BY(crit_sect_) = false;
52 52
53 // Reference count; implementation copied from rtc::RefCountedObject. 53 // Reference count; implementation copied from rtc::RefCountedObject.
54 mutable volatile int ref_count_ = 0; 54 mutable volatile int ref_count_ = 0;
55 55
56 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioState); 56 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioState);
57 }; 57 };
58 } // namespace internal 58 } // namespace internal
59 } // namespace webrtc 59 } // namespace webrtc
60 60
61 #endif // WEBRTC_AUDIO_AUDIO_STATE_H_ 61 #endif // WEBRTC_AUDIO_AUDIO_STATE_H_
OLDNEW
« no previous file with comments | « talk/media/devices/yuvframescapturer.cc ('k') | webrtc/base/bufferqueue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698