Skip to content
  • Wonchul Lee's avatar
    waylandsink: Avoid race condition on multi-threaded client · 2ae381e2
    Wonchul Lee authored and Nicolas Dufresne's avatar Nicolas Dufresne committed
    When waylandsink is used on some other thread than the main wayland
    client thread, the waylandsink implementation is vulnerable to a
    
    condition related to registry and surface events which handled in
    seperated event queue.
    
    The race that may happen is that after a proxy is created, but
    before the queue is set, events meant to be emitted via the yet to
    
    set queue may already have been queued on the wrong queue.
    
    Wayland 1.11 introduced new API that allows creating a proxy
    wrappper which can help to avoid this race condition.
    2ae381e2