Merge branch 'development'

This commit is contained in:
John Wellbelove 2022-02-20 19:28:22 +00:00
commit 734df1a372
13 changed files with 169 additions and 168 deletions

View File

@ -163,7 +163,7 @@ namespace etl
{
if (enabled)
{
if (process_semaphore.load() == 0U)
if (process_semaphore == 0U)
{
// We have something to do?
bool has_active = !active_list.empty();
@ -567,7 +567,7 @@ namespace etl
timer_list active_list;
volatile bool enabled;
volatile etl::atomic_uint_least16_t process_semaphore;
volatile etl::timer_semaphore_t process_semaphore;
volatile uint_least8_t number_of_registered_timers;
public:

View File

@ -325,8 +325,8 @@ namespace etl
//***************************************************************************
/// Send a message to a router.
//***************************************************************************
static void send_message(etl::imessage_router& destination,
const etl::imessage& message)
static inline void send_message(etl::imessage_router& destination,
const etl::imessage& message)
{
destination.receive(message);
}

View File

@ -37,7 +37,9 @@ SOFTWARE.
#include <stddef.h>
#if (ETL_USING_STL && ETL_NOT_USING_STLPORT) || !defined(ETL_IN_UNIT_TEST_INITIALIZER_LIST)
#if ((ETL_USING_STL && ETL_NOT_USING_STLPORT) || defined(ETL_IN_UNIT_TEST)) && !defined(ETL_IN_UNIT_TEST_INITIALIZER_LIST)
#define ETL_USING_INITIALIZER_LIST 1
#include <initializer_list>

View File

@ -415,8 +415,8 @@ namespace etl
//***************************************************************************
/// Send a message to a bus.
//***************************************************************************
inline static void send_message(etl::imessage_bus& bus,
const etl::imessage& message)
static inline void send_message(etl::imessage_bus& bus,
const etl::imessage& message)
{
bus.receive(message);
}
@ -424,9 +424,9 @@ namespace etl
//***************************************************************************
/// Send a message to a bus.
//***************************************************************************
inline static void send_message(etl::imessage_bus& bus,
etl::message_router_id_t id,
const etl::imessage& message)
static inline void send_message(etl::imessage_bus& bus,
etl::message_router_id_t id,
const etl::imessage& message)
{
bus.receive(id, message);
}

View File

@ -313,8 +313,8 @@ namespace etl
//***************************************************************************
/// Send a message to a router.
//***************************************************************************
static void send_message(etl::imessage_router& destination,
const etl::imessage& message)
static inline void send_message(etl::imessage_router& destination,
const etl::imessage& message)
{
destination.receive(message);
}

View File

@ -165,7 +165,7 @@ namespace etl
{
if (enabled)
{
if (process_semaphore.load() == 0U)
if (process_semaphore == 0U)
{
// We have something to do?
bool has_active = !active_list.empty();
@ -580,7 +580,7 @@ namespace etl
timer_list active_list;
volatile bool enabled;
volatile etl::atomic_uint_least16_t process_semaphore;
volatile etl::timer_semaphore_t process_semaphore;
volatile uint_least8_t registered_timers;
public:

View File

@ -39,7 +39,7 @@ SOFTWARE.
#define ETL_VERSION_MAJOR 20
#define ETL_VERSION_MINOR 24
#define ETL_VERSION_PATCH 0
#define ETL_VERSION_PATCH 1
#define ETL_VERSION ETL_STRINGIFY(ETL_VERSION_MAJOR) "." ETL_STRINGIFY(ETL_VERSION_MINOR) "." ETL_STRINGIFY(ETL_VERSION_PATCH)
#define ETL_VERSION_W ETL_STRINGIFY(ETL_VERSION_MAJOR) L"." ETL_STRINGIFY(ETL_VERSION_MINOR) L"." ETL_STRINGIFY(ETL_VERSION_PATCH)
#define ETL_VERSION_U16 ETL_STRINGIFY(ETL_VERSION_MAJOR) u"." ETL_STRINGIFY(ETL_VERSION_MINOR) u"." ETL_STRINGIFY(ETL_VERSION_PATCH)

View File

@ -1,6 +1,6 @@
{
"name": "Embedded Template Library",
"version": "20.24.0",
"version": "20.24.1",
"authors": {
"name": "John Wellbelove",
"email": "john.wellbelove@etlcpp.com"

View File

@ -1,5 +1,5 @@
name=Embedded Template Library
version=20.24.0
version=20.24.1
author= John Wellbelove <john.wellbelove@etlcpp.com>
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
license=MIT

View File

@ -8,7 +8,7 @@ project('etl',
'cpp_std=c++17', 'build.cpp_std=c++17',
],
meson_version: '>=0.54.0',
version: '20.24.0'
version: '20.24.1'
)
compile_args = []

View File

@ -1,3 +1,8 @@
===============================================================================
20.24.1
callback and message timers now use etl::timer_semaphore_t instead of et::atomic_uint_least16_t
Fixed send_message function signatures.
===============================================================================
20.24.0
#503 Algorithm transform uses expensive post increment operator - Fixed for all occurences of iterator increment.

View File

@ -109,12 +109,6 @@ SOFTWARE.
#define ETL_VARIANT_FORCE_CPP11
#endif
//#define ETL_VARIANT_CPP11_MAX_16_TYPES
#if defined(ETL_NO_STL)
#define ETL_TIMER_SEMAPHORE_TYPE uint32_t
#endif
#include "../include/etl/profiles/determine_compiler_language_support.h"
#if ETL_CPP17_NOT_SUPPORTED

View File

@ -1868,81 +1868,6 @@
<ClCompile Include="..\sanity-check\utility.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_ebu.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_icode.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_itu.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_maxim.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_wcdma.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_a.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_arc.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_buypass.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_dds110.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_dectr.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_dectx.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_dnp.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_en13757.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_maxim.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_mcrf4xx.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_profibus.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_riello.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_t10dif.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_teledisk.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_tms37157.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_d.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_jamcrc.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_q.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_xfer.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_cdma2000.h.t.cpp">
<Filter>Source Files\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\variance.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
@ -2909,21 +2834,6 @@
<ClCompile Include="..\sanity-check\initializer_list.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\correlation.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\covariance.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_cdma2000.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_darc.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_dvbs2.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_ebu.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
@ -2936,30 +2846,18 @@
<ClCompile Include="..\sanity-check\crc8_maxim.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_rohc.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_wcdma.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_a.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_arc.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_aug_ccitt.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_buypass.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_ccitt.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_cdma2000.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
@ -2978,18 +2876,12 @@
<ClCompile Include="..\sanity-check\crc16_en13757.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_genibus.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_maxim.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_mcrf4xx.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_modbus.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_profibus.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
@ -3005,54 +2897,18 @@
<ClCompile Include="..\sanity-check\crc16_tms37157.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_usb.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_d.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_jamcrc.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_mpeg2.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_q.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_xfer.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc64_ecma.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\gamma.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\variant.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\variant_pool.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\vector.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\version.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\visitor.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\wformat_spec.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\wstring.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\wstring_stream.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\correlation.h.t.cpp">
<Filter>Tests</Filter>
</ClCompile>
@ -3203,6 +3059,150 @@
<ClCompile Include="..\sanity-check\byte.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\correlation.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\covariance.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_cdma2000.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_darc.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_dvbs2.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_ebu.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_icode.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_itu.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_maxim.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_rohc.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc8_wcdma.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_a.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_arc.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_aug_ccitt.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_buypass.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_ccitt.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_cdma2000.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_dds110.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_dectr.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_dectx.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_dnp.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_en13757.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_genibus.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_maxim.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_mcrf4xx.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_modbus.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_profibus.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_riello.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_t10dif.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_teledisk.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_tms37157.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc16_usb.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_d.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_jamcrc.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_mpeg2.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_q.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc32_xfer.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\crc64_ecma.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\gamma.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\wstring_stream.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\variant.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\variant_pool.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\vector.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\version.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\visitor.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\wformat_spec.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
<ClCompile Include="..\sanity-check\wstring.h.t.cpp">
<Filter>Tests\Sanity Checks</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="..\..\library.properties">