diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-22 17:46:01 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-22 17:46:01 +0100 |
commit | 443e9692935f1f6c9abefbc842e9f2f5ae6b065d (patch) | |
tree | a61490259f366e27fa391019b29db64085837c80 /libavutil/buffer_internal.h | |
parent | 67d8eabdbb29efb66c9d813635732c9d6aa5c437 (diff) | |
parent | 27079a426c9d3db918b158976e44b9b143d78e1c (diff) | |
download | ffmpeg-443e9692935f1f6c9abefbc842e9f2f5ae6b065d.tar.gz |
Merge commit '27079a426c9d3db918b158976e44b9b143d78e1c'
* commit '27079a426c9d3db918b158976e44b9b143d78e1c':
buffer: convert to stdatomic
Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'libavutil/buffer_internal.h')
-rw-r--r-- | libavutil/buffer_internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavutil/buffer_internal.h b/libavutil/buffer_internal.h index bbd40a04e4..54b67047e5 100644 --- a/libavutil/buffer_internal.h +++ b/libavutil/buffer_internal.h @@ -19,6 +19,7 @@ #ifndef AVUTIL_BUFFER_INTERNAL_H #define AVUTIL_BUFFER_INTERNAL_H +#include <stdatomic.h> #include <stdint.h> #include "buffer.h" @@ -40,7 +41,7 @@ struct AVBuffer { /** * number of existing AVBufferRef instances referring to this buffer */ - volatile int refcount; + atomic_uint refcount; /** * a callback for freeing the data @@ -85,7 +86,7 @@ struct AVBufferPool { * buffers have been released, then it's safe to free the pool and all * the buffers in it. */ - volatile int refcount; + atomic_uint refcount; int size; void *opaque; |