frame_thread_encoder: make 'exit' member atomic.
authorRonald S. Bultje <rsbultje@gmail.com>
Mon, 11 Sep 2017 13:58:47 +0000 (09:58 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Tue, 12 Sep 2017 12:21:10 +0000 (08:21 -0400)
commit183216b21870f21c86c904a7530d53682d7db46d
treed8e6de0c676031fcd8a56aabe93e66b0018d04ac
parent549ef6ef9a8168281640b9cd0240abe071cbbda3
frame_thread_encoder: make 'exit' member atomic.

Should fix the following tsan warning:

WARNING: ThreadSanitizer: data race (pid=19806)
  Read of size 4 at 0x7b84000012f0 by thread T9:
    #0 worker src/libavcodec/frame_thread_encoder.c:66 (ffmpeg+0x0000007f349e)
[..]
  Previous write of size 4 at 0x7b84000012f0 by main thread (mutexes: write M1395):
    #0 ff_frame_thread_encoder_free src/libavcodec/frame_thread_encoder.c:239 (ffmpeg+0x0000007f379e)
[..]
libavcodec/frame_thread_encoder.c