Skip to content

Commit fae2eb1

Browse files
committed
Reformat for better optical consistency.
1 parent 6b25c8c commit fae2eb1

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

src/Shared.hpp

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
**************************************************************************************/
77

88
#include <mbed.h>
9-
#include <MemoryPool.h>
109

1110
/**************************************************************************************
1211
* CLASS DECLARATION
@@ -15,25 +14,19 @@
1514
template<class T, size_t QUEUE_SIZE = 16>
1615
class Shared
1716
{
18-
public:
19-
Shared() {
20-
}
17+
public:
2118

22-
operator T();
23-
void operator = (T const & other);
19+
operator T();
20+
void operator = (T const & other);
2421

25-
T& peek() {
26-
return _val;
27-
}
22+
T & peek() { return _val; }
23+
T & latest() { return peek(); }
2824

29-
T& latest() {
30-
return peek();
31-
}
3225

33-
private:
26+
private:
3427

35-
T _val;
36-
rtos::Mail<T, QUEUE_SIZE> _mailbox;
28+
T _val;
29+
rtos::Mail<T, QUEUE_SIZE> _mailbox;
3730
};
3831

3932
/**************************************************************************************

0 commit comments

Comments
 (0)