Skip to content

module-protocol-native: emit error on bad concurrency

P V requested to merge pvir/pipewire:concurrency-debug into master

Emit error if message construction is not holding appropriate locks or runs from wrong thread, so that the flush may be running concurrently.

This generally causes corrputed messages to be sent silently, and can be fairly hard to debug otherwise in client applications.


mpd and wireplumber tests both had forgotten locking, and the mysterious module-protocol-native issues can be a bit hard to debug. Since it doesn't cost much, we could add this assert to make these bugs easier to understand and more likely to get caught.

Edited by P V

Merge request reports