[FFmpeg-devel] [PATCH] frame_thread_encoder: make 'exit' member atomic.
Michael Niedermayer
michael at niedermayer.cc
Tue Sep 12 00:30:50 EEST 2017
On Mon, Sep 11, 2017 at 09:58:55AM -0400, Ronald S. Bultje wrote:
> 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 | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
LGTM
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170911/fb7acf86/attachment.sig>
More information about the ffmpeg-devel
mailing list