lookahead: Keep b_exit_thread under ifbuf.mutex
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.
parent
d2907f67
No related branches found
No related tags found
Please register or sign in to comment