Skip to content

Commit 6b25c8c

Browse files
committed
Prefix private member variable 'val' with a '_'
1 parent 048d823 commit 6b25c8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Shared.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Shared
2323
void operator = (T const & other);
2424

2525
T& peek() {
26-
return val;
26+
return _val;
2727
}
2828

2929
T& latest() {
@@ -32,7 +32,7 @@ class Shared
3232

3333
private:
3434

35-
T val;
35+
T _val;
3636
rtos::Mail<T, QUEUE_SIZE> _mailbox;
3737
};
3838

@@ -50,7 +50,7 @@ Shared<T,QUEUE_SIZE>::operator T()
5050
_mailbox.free(val_ptr);
5151
return tmp_val;
5252
}
53-
return val;
53+
return _val;
5454
}
5555

5656
template<class T, size_t QUEUE_SIZE>
@@ -66,7 +66,7 @@ void Shared<T,QUEUE_SIZE>::operator = (T const & other)
6666
_mailbox.free(val_ptr);
6767
}
6868

69-
val = other;
69+
_val = other;
7070

7171
T * val_ptr = _mailbox.try_alloc();
7272
if (val_ptr)

0 commit comments

Comments
 (0)