This one is rather tricky, but changing the initialization of current_val should give this the same effect. Based on ffmpeg's change here: https://ffmpeg.org/pipermail/ffmpeg-devel/2014-October/164556.html Quoting from them: > The second reason is __atomic_compare_exchange_n(), and how it differs from > __sync_val_compare_and_swap(). > While the latter returns *ptr as it was before the operation, the former > doesn't and instead copies *ptr to oldval if the result of the > comparison is false. This means that returning oldval will match the old behavoir > without having to change the wrapper. > A disassemble example from libavutil/buffer.o however hints that the > __atomic function may be slower because of it writting oldval.
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.
