@@ -48,11 +48,23 @@ class Thread {
48
48
49
49
osStatus start (mbed::Callback<void ()> task);
50
50
51
- osStatus join () {return 0 ;};
51
+ osStatus join ()
52
+ {
53
+ return 0 ;
54
+ };
52
55
osStatus terminate ();
53
- osStatus set_priority (osPriority priority){return 0 ;};
54
- osPriority get_priority () const {return osPriorityNormal;};
55
- uint32_t flags_set (uint32_t flags){return 0 ;};
56
+ osStatus set_priority (osPriority priority)
57
+ {
58
+ return 0 ;
59
+ };
60
+ osPriority get_priority () const
61
+ {
62
+ return osPriorityNormal;
63
+ };
64
+ uint32_t flags_set (uint32_t flags)
65
+ {
66
+ return 0 ;
67
+ };
56
68
57
69
/* * State of the Thread */
58
70
enum State {
@@ -77,26 +89,33 @@ class Thread {
77
89
Deleted, /* *< The task has been deleted or not started */
78
90
};
79
91
80
- State get_state () const {
81
- return Ready;
92
+ State get_state () const
93
+ {
94
+ return Ready;
82
95
};
83
- uint32_t stack_size () const {
84
- return 0 ;
96
+ uint32_t stack_size () const
97
+ {
98
+ return 0 ;
85
99
};
86
- uint32_t free_stack () const {
87
- return 0 ;
100
+ uint32_t free_stack () const
101
+ {
102
+ return 0 ;
88
103
};
89
- uint32_t used_stack () const {
90
- return 0 ;
104
+ uint32_t used_stack () const
105
+ {
106
+ return 0 ;
91
107
};
92
- uint32_t max_stack () const {
93
- return 0 ;
108
+ uint32_t max_stack () const
109
+ {
110
+ return 0 ;
94
111
};
95
- const char *get_name () const {
96
- return " " ;
112
+ const char *get_name () const
113
+ {
114
+ return " " ;
97
115
};
98
- osThreadId_t get_id () const {
99
- return 0 ;
116
+ osThreadId_t get_id () const
117
+ {
118
+ return 0 ;
100
119
};
101
120
virtual ~Thread ();
102
121
private:
0 commit comments