]> git.proxmox.com Git - mirror_frr.git/commit - lib/debug.h
lib: make atomic ops C++ compatible
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 11 Feb 2019 10:38:57 +0000 (11:38 +0100)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 11 Feb 2019 17:49:49 +0000 (15:49 -0200)
commitc8a65463b20c00b3fd635eb4ca97f3b53927c0f9
tree1e11fbf6b84f7a9ea2041e116dc634ac190c3f92
parentbe566e4e45aed586716958a1c4adeb00cc352bc0
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>
lib/debug.h
lib/frr_pthread.h
lib/frratomic.h
lib/hash.h
lib/memory.h
lib/stream.h
lib/thread.c
lib/thread.h