mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioconvert: avoid bitfield data races
Move the driver and warned bits after the int field in the struct so that they are placed in separate memory. Otherwise, a write from the data thread might race with a write from the main thread and leave the bits in the wrong state.
This commit is contained in:
parent
70b224f1c2
commit
27bed62e66
1 changed files with 3 additions and 2 deletions
|
|
@ -89,13 +89,14 @@ struct impl {
|
|||
unsigned int add_listener:1;
|
||||
unsigned int have_format:1;
|
||||
unsigned int started:1;
|
||||
unsigned int warned:1;
|
||||
unsigned int ready:1;
|
||||
unsigned int driver:1;
|
||||
unsigned int async:1;
|
||||
unsigned int passthrough:1;
|
||||
unsigned int follower_removing:1;
|
||||
unsigned int in_recalc;
|
||||
|
||||
unsigned int warned:1;
|
||||
unsigned int driver:1;
|
||||
};
|
||||
|
||||
/** \endcond */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue