diff options
Diffstat (limited to 'src/platform/posix/posix_impl.h')
| -rw-r--r-- | src/platform/posix/posix_impl.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/platform/posix/posix_impl.h b/src/platform/posix/posix_impl.h index b07d268b..a1cb62c5 100644 --- a/src/platform/posix/posix_impl.h +++ b/src/platform/posix/posix_impl.h @@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -84,7 +84,11 @@ struct nni_atomic_flag { }; struct nni_atomic_u64 { - _Atomic unsigned long long v; + atomic_uint_fast64_t v; +}; + +struct nni_atomic_bool { + atomic_bool v; }; #else // NNG_HAVE_C11_ATOMIC @@ -92,6 +96,10 @@ struct nni_atomic_flag { bool f; }; +struct nni_atomic_bol { + bool b; +}; + struct nni_atomic_u64 { uint64_t v; }; |
