From 36fe9a4d2d20301230cb125ab9178b66f54aabfc Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 26 Feb 2019 19:56:19 +0100 Subject: [PATCH] Modifies parameters to 'const' --- include/etl/queue_spsc_locked.h | 11 ++++++----- include/etl/version.h | 2 +- support/Release notes.txt | 4 ++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/include/etl/queue_spsc_locked.h b/include/etl/queue_spsc_locked.h index d2c3a2c2..0badc2ed 100644 --- a/include/etl/queue_spsc_locked.h +++ b/include/etl/queue_spsc_locked.h @@ -609,7 +609,7 @@ namespace etl //************************************************************************* /// The constructor that is called from derived classes. //************************************************************************* - iqueue_spsc_locked(T* p_buffer_, size_type max_size_, etl::ifunction& lock_, etl::ifunction& unlock_) + iqueue_spsc_locked(T* p_buffer_, size_type max_size_, const etl::ifunction& lock_, const etl::ifunction& unlock_) : base_t(p_buffer_, max_size_) , lock(lock_) , unlock(unlock_) @@ -622,8 +622,8 @@ namespace etl iqueue_spsc_locked(const iqueue_spsc_locked&); iqueue_spsc_locked& operator =(const iqueue_spsc_locked&); - etl::ifunction& lock; ///< The callback that locks interrupts. - etl::ifunction& unlock; ///< The callback that unlocks interrupts. + const etl::ifunction& lock; ///< The callback that locks interrupts. + const etl::ifunction& unlock; ///< The callback that unlocks interrupts. }; //*************************************************************************** @@ -652,8 +652,9 @@ namespace etl //************************************************************************* /// Default constructor. //************************************************************************* - queue_spsc_locked(etl::ifunction& lock, - etl::ifunction& unlock) + + queue_spsc_locked(const etl::ifunction& lock, + const etl::ifunction& unlock) : base_t(reinterpret_cast(&buffer[0]), MAX_SIZE, lock, unlock) { } diff --git a/include/etl/version.h b/include/etl/version.h index 5e46f2bc..2f7aebb4 100644 --- a/include/etl/version.h +++ b/include/etl/version.h @@ -39,7 +39,7 @@ SOFTWARE. #define ETL_VERSION_MAJOR 14 #define ETL_VERSION_MINOR 13 -#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_WIDE_STRING(ETL_CONCAT(ETL_CONCAT(ETL_VERSION_MAJOR, ETL_VERSION_MINOR), ETL_VERSION_PATCH)) diff --git a/support/Release notes.txt b/support/Release notes.txt index 5a6d8671..77f8c9fe 100644 --- a/support/Release notes.txt +++ b/support/Release notes.txt @@ -1,3 +1,7 @@ +=============================================================================== +14.13.1 +Modified etl::queue_spsc_locked parameters to 'const'. + =============================================================================== 14.13.0 Added etl::queue_spsc_locked with injected locking functions.