Skip to content
Snippets Groups Projects
Forked from VideoLAN / x264
Loading
  • Jean-Baptiste Kempf's avatar
    lookahead: Keep b_exit_thread under ifbuf.mutex · 66a5bc1b
    Jean-Baptiste Kempf authored and Anton Mitrofanov's avatar Anton Mitrofanov committed
    The lookahead_thread main loop checks b_exit_thread and exits if it is set.
    That flag is set by x264_lookahead_delete, which uses ifbuf.mutex to guard accessing it.
    However, the read in the while-loop condition of lookahead_thread is not guarded,
    and so TSAN sometimes reports a data race.
    66a5bc1b