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/frr_pthread.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/frr_pthread.h')
| -rw-r--r-- | lib/frr_pthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/frr_pthread.h b/lib/frr_pthread.h index e6b3f031b3..d487c738af 100644 --- a/lib/frr_pthread.h +++ b/lib/frr_pthread.h @@ -73,7 +73,7 @@ struct frr_pthread { */ pthread_cond_t *running_cond; pthread_mutex_t *running_cond_mtx; - _Atomic bool running; + atomic_bool running; /* * Fake thread-specific storage. No constraints on usage. Helpful when |
