The counter in etl::debug_count is atomic, if available

This commit is contained in:
John Wellbelove 2022-03-20 11:48:02 +00:00
parent cd561b5fa1
commit 422c5e0d36
2 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,7 @@ SOFTWARE.
#include <assert.h>
#include "platform.h"
#include "atomic.h"
///\defgroup debug_count debug count
///\ingroup utilities
@ -111,7 +112,11 @@ namespace etl
private:
#if ETL_HAS_ATOMIC
etl::atomic_int32_t count;
#else
int32_t count;
#endif
};
}

View File

@ -8,6 +8,7 @@ etl::swap is now ETL_CONSTEXPR14.
Changed ETL_ENDIANNESS_IS_CONSTEXPR to ETL_HAS_CONSTEXPR_ENDIANNESS.
Changed ETL_CONSTEXPR17 to ETL_CONSTEXPR14 for reverse iterators
Added template wrappers around memcpy, memmove, memcmp, memset& memchr.
The counter in etl::debug_count is atomic, if available.
===============================================================================
20.25.0