[FFmpeg-devel] [PATCH] Add the relaxed and acquire/releae flavors of avpriv_atomic_int_get and avpriv_atomic_int_set.

Ronald S. Bultje rsbultje at gmail.com
Tue Mar 1 04:05:52 CET 2016


Hi,

On Mon, Feb 29, 2016 at 9:35 PM, Wan-Teh Chang <wtc-at-google.com at ffmpeg.org
> wrote:

> Correct the order of the load/store operation and the memory barrier in
> avpriv_atomic_int_get and avpriv_atomic_int_set.
>

This sounds useful. Is there some documentation on which one should be used
under what conditions? I.e. when do I need full, release or acquire?

Use the atomic get and set functions in ff_thread_report_progress and
> ff_thread_await_progress.


I'd personally split this off into its own patch, but not a big deal
obviously.

Thanks,
Ronald


More information about the ffmpeg-devel mailing list