Skip to content

Commit 61f5e71

Browse files
authoredOct 1, 2020
Make QUEUE_SIZE selectable from template (#11)
1 parent ddb7a3d commit 61f5e71

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/Arduino_Threads.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
#include <MemoryPool.h>
55

6-
7-
template<class T>
6+
template<class T, size_t QUEUE_SIZE = 16>
87
class Shared // template definition
98
{
109
public:
@@ -45,7 +44,6 @@ class Shared // template definition
4544
return peek();
4645
}
4746
private:
48-
static size_t constexpr QUEUE_SIZE = 16;
4947

5048
T val;
5149
rtos::MemoryPool<T, QUEUE_SIZE> memory_pool;

0 commit comments

Comments
 (0)
Please sign in to comment.