libavcodec/utils.c: simplify avcodec locking with atomics
authorRostislav Pehlivanov <atomnuker@gmail.com>
Sat, 25 Nov 2017 16:55:44 +0000 (16:55 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Sun, 26 Nov 2017 02:17:23 +0000 (02:17 +0000)
commit590136e78da3d091ea99ab5432543d47a559a461
tree895d1015e229b7401b4d89eb2072d452e995635b
parent3154f4417ab56cfd1e978e6abbb68a9f9f7600ed
libavcodec/utils.c: simplify avcodec locking with atomics

Also makes it more robust than using volatiles.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
libavcodec/internal.h
libavcodec/utils.c