qemu-e2k/audio
Stefan Hajnoczi 195801d700 system/cpus: rename qemu_mutex_lock_iothread() to bql_lock()
The Big QEMU Lock (BQL) has many names and they are confusing. The
actual QemuMutex variable is called qemu_global_mutex but it's commonly
referred to as the BQL in discussions and some code comments. The
locking APIs, however, are called qemu_mutex_lock_iothread() and
qemu_mutex_unlock_iothread().

The "iothread" name is historic and comes from when the main thread was
split into into KVM vcpu threads and the "iothread" (now called the main
loop thread). I have contributed to the confusion myself by introducing
a separate --object iothread, a separate concept unrelated to the BQL.

The "iothread" name is no longer appropriate for the BQL. Rename the
locking APIs to:
- void bql_lock(void)
- void bql_unlock(void)
- bool bql_locked(void)

There are more APIs with "iothread" in their names. Subsequent patches
will rename them. There are also comments and documentation that will be
updated in later patches.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Fabiano Rosas <farosas@suse.de>
Acked-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Peter Xu <peterx@redhat.com>
Acked-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Acked-by: Hyman Huang <yong.huang@smartx.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-id: 20240102153529.486531-2-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2024-01-08 10:45:43 -05:00
..
alsaaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
audio_int.h audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
audio_template.h audio: commonize voice initialization 2023-10-03 10:29:39 +02:00
audio_win_int.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
audio_win_int.h
audio-hmp-cmds.c audio: return Error ** from audio_state_by_name 2023-10-03 10:29:39 +02:00
audio.c audio/audio.c: remove trailing newline in error_setg 2024-01-05 22:28:54 +03:00
audio.h audio: reintroduce default audio backend for VNC 2023-10-08 21:08:27 +02:00
coreaudio.m system/cpus: rename qemu_mutex_lock_iothread() to bql_lock() 2024-01-08 10:45:43 -05:00
dbusaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
dsound_template.h dsoundaudio: replace GetForegroundWindow() 2021-01-15 11:25:22 +01:00
dsoundaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
jackaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
meson.build audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
mixeng_template.h
mixeng.c audio: make recording packet length calculation exact 2023-03-06 10:30:23 +04:00
mixeng.h audio: spelling fixes 2023-09-08 13:08:52 +03:00
noaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
ossaudio.c audio/ossaudio: Fix compiler warning with -Wshadow 2023-10-06 10:56:54 +02:00
paaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
pwaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
rate_template.h audio: make the resampling code greedy 2023-03-06 10:30:23 +04:00
sdlaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
sndioaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 2023-10-03 10:29:39 +02:00
spiceaudio.c audio: allow returning an error from the driver init 2023-10-03 10:29:39 +02:00
trace-events audio/pw: Pipewire->PipeWire case fix for user-visible text 2023-07-17 15:22:56 +04:00
trace.h
wavaudio.c audio: don't abort on f32 audio format in wav backend 2023-11-07 14:58:54 +00:00
wavcapture.c monitor: Use getter/setter functions for cur_mon 2020-10-09 07:08:19 +02:00