diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2019-02-11 11:38:57 +0100 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-02-11 15:49:49 -0200 |
| commit | c8a65463b20c00b3fd635eb4ca97f3b53927c0f9 (patch) | |
| tree | 1e11fbf6b84f7a9ea2041e116dc634ac190c3f92 /lib/stream.h | |
| parent | be566e4e45aed586716958a1c4adeb00cc352bc0 (diff) | |
lib: make atomic ops C++ compatible
C++ doesn't have ISO C11 stdatomic.h or "_Atomic inttype", so use
std::atomic instead to get the headers compatible.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/stream.h')
| -rw-r--r-- | lib/stream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stream.h b/lib/stream.h index 32b6fb5af1..20c5d3d77d 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -115,9 +115,9 @@ struct stream_fifo { pthread_mutex_t mtx; /* number of streams in this fifo */ - _Atomic size_t count; + atomic_size_t count; #if defined DEV_BUILD - _Atomic size_t max_count; + atomic_size_t max_count; #endif struct stream *head; |
