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 4f3aabc commit 07fc7aeCopy full SHA for 07fc7ae
TESTS/mbedmicro-rtos-mbed/mail/main.cpp
@@ -21,7 +21,7 @@ typedef struct {
21
22
Mail<mail_t, QUEUE_SIZE> mail_box;
23
24
-void send_thread (void const *argument) {
+void send_thread () {
25
static uint32_t i = 10;
26
while (true) {
27
i++; // fake data update
@@ -37,7 +37,8 @@ void send_thread (void const *argument) {
37
int main (void) {
38
GREENTEA_SETUP(20, "default_auto");
39
40
- Thread thread(send_thread, NULL, osPriorityNormal, STACK_SIZE);
+ Thread thread(osPriorityNormal, STACK_SIZE);
41
+ thread.start(send_thread);
42
bool result = true;
43
int result_counter = 0;
44
0 commit comments