Skip to content
  • Stian Selnes's avatar
    systemclock: Fix wait/unschedule race · 2b0ff13d
    Stian Selnes authored
    Fixes a race where an entry is set to BUSY in
    gst_system_clock_id_wait_jitter() and is UNSCHEDULED before
    gst_system_clock_id_wait_jitter_unlocked() starts processing it. The
    wakeup added by gst_system_clock_id_unschedule() must be cleaned up.
    
    Two stress tests are added. One test that triggers the specific issue
    described above. The second stresses the code path where a wait is
    rescheduled because the poll returned early.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761586
    2b0ff13d