File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 25
25
26
26
#include < mbed.h>
27
27
28
+ /* *************************************************************************************
29
+ * CONSTANT
30
+ **************************************************************************************/
31
+
32
+ static size_t constexpr SHARED_QUEUE_SIZE = 16 ;
33
+
28
34
/* *************************************************************************************
29
35
* CLASS DECLARATION
30
36
**************************************************************************************/
31
37
32
- template <class T , size_t QUEUE_SIZE = 16 >
38
+ template <class T , size_t QUEUE_SIZE = SHARED_QUEUE_SIZE >
33
39
class Shared
34
40
{
35
41
public:
@@ -43,6 +49,7 @@ class Shared
43
49
44
50
T _val;
45
51
rtos::Mail<T, QUEUE_SIZE> _mailbox;
52
+
46
53
};
47
54
48
55
/* *************************************************************************************
You can’t perform that action at this time.
0 commit comments