mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
The counter in etl::debug_count is atomic, if available
This commit is contained in:
parent
cd561b5fa1
commit
422c5e0d36
@ -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
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user