March 8, 2026
7:34 p.m.
We call `copy_buffer()` in another thread, quartz_parser `stream_thread()`, where if a flush occurs between `wg_parser_stream_get_buffer()` and `send_buffer()`, we can have a new buffer by the time it reaches `wg_parser_stream_copy_buffer()`. From what I understand, without some form of locking during the calls to `get_buffer()` and `send_buffer()`, there's no guarantee `send_buffer()` will send the buffer whose info was fetched in `get_buffer()`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10256#note_131561