We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048d823 commit 6b25c8cCopy full SHA for 6b25c8c
src/Shared.hpp
@@ -23,7 +23,7 @@ class Shared
23
void operator = (T const & other);
24
25
T& peek() {
26
- return val;
+ return _val;
27
}
28
29
T& latest() {
@@ -32,7 +32,7 @@ class Shared
32
33
private:
34
35
- T val;
+ T _val;
36
rtos::Mail<T, QUEUE_SIZE> _mailbox;
37
};
38
@@ -50,7 +50,7 @@ Shared<T,QUEUE_SIZE>::operator T()
50
_mailbox.free(val_ptr);
51
return tmp_val;
52
53
54
55
56
template<class T, size_t QUEUE_SIZE>
@@ -66,7 +66,7 @@ void Shared<T,QUEUE_SIZE>::operator = (T const & other)
66
67
68
69
- val = other;
+ _val = other;
70
71
T * val_ptr = _mailbox.try_alloc();
72
if (val_ptr)
0 commit comments