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

Side by Side Diff: webrtc/modules/audio_device/linux/audio_device_alsa_linux.h

Issue 3004393002: Rename thread annotation macros to have RTC prefix for syncrhonization primitives. (Closed)
Patch Set: Created 3 years, 3 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 | « no previous file | webrtc/modules/audio_device/linux/audio_device_pulse_linux.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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 private: 139 private:
140 int32_t GetDevicesInfo(const int32_t function, 140 int32_t GetDevicesInfo(const int32_t function,
141 const bool playback, 141 const bool playback,
142 const int32_t enumDeviceNo = 0, 142 const int32_t enumDeviceNo = 0,
143 char* enumDeviceName = NULL, 143 char* enumDeviceName = NULL,
144 const int32_t ednLen = 0) const; 144 const int32_t ednLen = 0) const;
145 int32_t ErrorRecovery(int32_t error, snd_pcm_t* deviceHandle); 145 int32_t ErrorRecovery(int32_t error, snd_pcm_t* deviceHandle);
146 146
147 bool KeyPressed() const; 147 bool KeyPressed() const;
148 148
149 void Lock() EXCLUSIVE_LOCK_FUNCTION(_critSect) { _critSect.Enter(); }; 149 void Lock() RTC_EXCLUSIVE_LOCK_FUNCTION(_critSect) { _critSect.Enter(); };
150 void UnLock() UNLOCK_FUNCTION(_critSect) { _critSect.Leave(); }; 150 void UnLock() RTC_UNLOCK_FUNCTION(_critSect) { _critSect.Leave(); };
151 151
152 inline int32_t InputSanityCheckAfterUnlockedPeriod() const; 152 inline int32_t InputSanityCheckAfterUnlockedPeriod() const;
153 inline int32_t OutputSanityCheckAfterUnlockedPeriod() const; 153 inline int32_t OutputSanityCheckAfterUnlockedPeriod() const;
154 154
155 static bool RecThreadFunc(void*); 155 static bool RecThreadFunc(void*);
156 static bool PlayThreadFunc(void*); 156 static bool PlayThreadFunc(void*);
157 bool RecThreadProcess(); 157 bool RecThreadProcess();
158 bool PlayThreadProcess(); 158 bool PlayThreadProcess();
159 159
160 AudioDeviceBuffer* _ptrAudioBuffer; 160 AudioDeviceBuffer* _ptrAudioBuffer;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 char _oldKeyState[32]; 214 char _oldKeyState[32];
215 #if defined(USE_X11) 215 #if defined(USE_X11)
216 Display* _XDisplay; 216 Display* _XDisplay;
217 #endif 217 #endif
218 }; 218 };
219 219
220 } 220 }
221 221
222 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_DEVICE_ALSA_LINUX_H_ 222 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_DEVICE_ALSA_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_device/linux/audio_device_pulse_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698