pipewire/spa/plugins
Barnabás Pőcze 5fed160972 spa: support: loop: do not call control hooks on blocking invoke
The control hooks of a loop are called before the loop starts polling
and after it has finished polling. Currently, this is used to implement
the locking in pw_thread_loop. This is used to guarantee that the thread
loop's lock is taken while the thread loop is dispatching, and that
the lock can be taken while the loop is polling, when it is running
no user-space code.

However, calling the thread control hooks of thread A when doing an
blocking invoke from thread B serves little purpose, and in fact
can cause issues: for example, issuing a blocking invoke on a
pw_thread_loop does not work unless the lock thereof is taken.

This behaviour, of calling the control hooks from other threads,
is also not documented, and goes contrary to what is currently
stated in the loop.h header file:

  /** Executed right before waiting for events. It is typically used to
   * release locks. */
  ...
  /** Executed right after waiting for events. It is typically used to
   * reacquire locks. */

At the moment the implementation allows any thread to queue invoke
items on any other thread without restrictions; calling the control
hooks only places extra restrictions on the usability of this mechanism
(in case of pw_thread_loop, having to take the loop's lock).
So do not call the control hooks when doing a blocking invoke.
2024-08-06 17:50:38 +02:00
..
aec spa: aec: webrtc: Fix multichannel processing 2024-06-25 15:34:30 -04:00
alsa alsa-pcm: Lower the frequency of USB gadget rate updates 2024-08-01 12:34:57 +02:00
audioconvert audioconvert: set IO_Buffers only when buffers are negotiated 2024-07-30 09:46:52 +02:00
audiomixer spa: revert peer_enum_params node event again 2024-06-20 10:22:45 +02:00
audiotestsrc fix compilation some more 2024-06-18 15:41:12 +02:00
avb spa: small cleanups 2024-01-10 15:51:01 +01:00
bluez5 bluez5: Update default sync_factor 2024-07-29 10:29:25 +02:00
control spa: revert peer_enum_params node event again 2024-06-20 10:22:45 +02:00
ffmpeg spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
jack spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
libcamera impl-port: add port.group property 2024-06-24 13:38:09 +02:00
support spa: support: loop: do not call control hooks on blocking invoke 2024-08-06 17:50:38 +02:00
test spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
v4l2 v4l2: Improve format and control enumeration 2024-07-12 08:58:09 +02:00
videoconvert videoconvert: Enable loading external converter plugins 2024-01-22 13:59:16 +00:00
videotestsrc spa: use log topics everywhere 2024-03-11 18:45:21 +02:00
volume spa: fix volume plugin compilation 2024-06-18 15:44:26 +02:00
vulkan vulkan: fix compilation 2024-06-18 15:16:06 +02:00
meson.build meson: fix build with missing libudev-devel 2024-02-06 11:49:40 +01:00