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

Side by Side Diff: webrtc/voice_engine/statistics.h

Issue 1652983002: Remove mutable from rtc::CriticalSections. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 21 matching lines...) Expand all
32 int32_t SetUnInitialized(); 32 int32_t SetUnInitialized();
33 bool Initialized() const; 33 bool Initialized() const;
34 int32_t SetLastError(int32_t error) const; 34 int32_t SetLastError(int32_t error) const;
35 int32_t SetLastError(int32_t error, TraceLevel level) const; 35 int32_t SetLastError(int32_t error, TraceLevel level) const;
36 int32_t SetLastError(int32_t error, 36 int32_t SetLastError(int32_t error,
37 TraceLevel level, 37 TraceLevel level,
38 const char* msg) const; 38 const char* msg) const;
39 int32_t LastError() const; 39 int32_t LastError() const;
40 40
41 private: 41 private:
42 mutable rtc::CriticalSection lock_; 42 rtc::CriticalSection lock_;
43 const uint32_t _instanceId; 43 const uint32_t _instanceId;
44 mutable int32_t _lastError; 44 mutable int32_t _lastError;
45 bool _isInitialized; 45 bool _isInitialized;
46 }; 46 };
47 47
48 } // namespace voe 48 } // namespace voe
49 49
50 } // namespace webrtc 50 } // namespace webrtc
51 51
52 #endif // WEBRTC_VOICE_ENGINE_STATISTICS_H 52 #endif // WEBRTC_VOICE_ENGINE_STATISTICS_H
OLDNEW
« no previous file with comments | « webrtc/voice_engine/shared_data.h ('k') | webrtc/voice_engine/test/auto_test/fakes/conference_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698