-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
52 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
cmake_minimum_required(VERSION 3.16) | ||
|
||
project(lockfree | ||
VERSION 2.0.2 | ||
VERSION 2.0.3 | ||
LANGUAGES CXX | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* @brief A collection of lock free data structures written in | ||
* standard c++11 suitable for all systems, from low-end | ||
* microcontrollers to HPC machines. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -36,7 +36,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
#ifndef LOCKFREE_HPP | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* @brief A priority queue implementation written in standard | ||
* c++11 suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for all scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -36,7 +36,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/************************** INCLUDE ***************************/ | ||
|
@@ -70,7 +70,7 @@ template <typename T, size_t size, size_t priority_count> class PriorityQueue { | |
* @param[in] Element priority | ||
* @retval Operation success | ||
*/ | ||
bool Push(const T &element, const size_t priority); | ||
bool Push(const T &element, size_t priority); | ||
|
||
/** | ||
* @brief Removes an element with the highest priority from the queue. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* @brief A priority queue implementation written in standard | ||
* c++11 suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for all scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -36,7 +36,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/************************** INCLUDE ***************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* @brief A queue implementation written in standard c++11 | ||
* suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for all scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -36,7 +36,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/************************** INCLUDE ***************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* @brief A queue implementation written in standard c++11 | ||
* suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for all scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -36,7 +36,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/********************** PUBLIC METHODS ************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* standard c++11 suitable for all systems, from low-end | ||
* microcontrollers to HPC machines. | ||
* Lock-free for single consumer single producer scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -37,7 +37,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/************************** INCLUDE ***************************/ | ||
|
@@ -70,7 +70,7 @@ template <typename T, size_t size> class BipartiteBuf { | |
* @param[in] Free linear space in the buffer required | ||
* @retval Pointer to the beginning of the linear space | ||
*/ | ||
T *WriteAcquire(const size_t free_required); | ||
T *WriteAcquire(size_t free_required); | ||
|
||
#if __cplusplus >= 202002L || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L) | ||
/** | ||
|
@@ -79,7 +79,7 @@ template <typename T, size_t size> class BipartiteBuf { | |
* @param[in] Free linear space in the buffer required | ||
* @retval Span of the linear space | ||
*/ | ||
std::span<T> WriteAcquireSpan(const size_t free_required); | ||
std::span<T> WriteAcquireSpan(size_t free_required); | ||
#endif | ||
|
||
/** | ||
|
@@ -88,7 +88,7 @@ template <typename T, size_t size> class BipartiteBuf { | |
* @param[in] Elements written to the linear space | ||
* @retval None | ||
*/ | ||
void WriteRelease(const size_t written); | ||
void WriteRelease(size_t written); | ||
|
||
#if __cplusplus >= 202002L || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L) | ||
/** | ||
|
@@ -97,7 +97,7 @@ template <typename T, size_t size> class BipartiteBuf { | |
* @param[in] Span of the linear space | ||
* @retval None | ||
*/ | ||
void WriteRelease(const std::span<T> written); | ||
void WriteRelease(std::span<T> written); | ||
#endif | ||
|
||
/** | ||
|
@@ -123,7 +123,7 @@ template <typename T, size_t size> class BipartiteBuf { | |
* @param[in] Elements read from the linear region | ||
* @retval None | ||
*/ | ||
void ReadRelease(const size_t read); | ||
void ReadRelease(size_t read); | ||
|
||
#if __cplusplus >= 202002L || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L) | ||
/** | ||
|
@@ -132,7 +132,7 @@ template <typename T, size_t size> class BipartiteBuf { | |
* @param[in] Span of the linear space | ||
* @retval None | ||
*/ | ||
void ReadRelease(const std::span<T> read); | ||
void ReadRelease(std::span<T> read); | ||
#endif | ||
|
||
/********************* PRIVATE METHODS ************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* c++11 suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for single consumer single | ||
* producer scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -37,7 +37,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/************************** INCLUDE ***************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* c++11 suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for single consumer single | ||
* producer scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -37,7 +37,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/************************** INCLUDE ***************************/ | ||
|
@@ -71,7 +71,7 @@ template <typename T, size_t size, size_t priority_count> class PriorityQueue { | |
* @param[in] Element priority | ||
* @retval Operation success | ||
*/ | ||
bool Push(const T &element, const size_t priority); | ||
bool Push(const T &element, size_t priority); | ||
|
||
/** | ||
* @brief Removes an element with the highest priority from the queue. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* c++11 suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for single consumer single | ||
* producer scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -37,7 +37,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/************************** INCLUDE ***************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for single consumer single | ||
* producer scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -37,7 +37,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/************************** INCLUDE ***************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for single consumer single | ||
* producer scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -37,7 +37,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/********************** PUBLIC METHODS ************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* c++11 suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for single consumer single | ||
* producer scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -37,7 +37,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/************************** INCLUDE ***************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* c++11 suitable for both low-end microcontrollers all the way | ||
* to HPC machines. Lock-free for single consumer single | ||
* producer scenarios. | ||
* @version 2.0.2 | ||
* @date 6. June 2023 | ||
* @version 2.0.3 | ||
* @date 17. July 2023 | ||
* @author Djordje Nedic | ||
**************************************************************/ | ||
|
||
|
@@ -37,7 +37,7 @@ | |
* This file is part of lockfree | ||
* | ||
* Author: Djordje Nedic <[email protected]> | ||
* Version: v2.0.2 | ||
* Version: v2.0.3 | ||
**************************************************************/ | ||
|
||
/********************** PUBLIC METHODS ************************/ | ||
|