Skip to content

Commit 07fc7ae

Browse files
committed
Remove deprecated Thread constructor usage
1 parent 4f3aabc commit 07fc7ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

TESTS/mbedmicro-rtos-mbed/mail/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ typedef struct {
2121

2222
Mail<mail_t, QUEUE_SIZE> mail_box;
2323

24-
void send_thread (void const *argument) {
24+
void send_thread () {
2525
static uint32_t i = 10;
2626
while (true) {
2727
i++; // fake data update
@@ -37,7 +37,8 @@ void send_thread (void const *argument) {
3737
int main (void) {
3838
GREENTEA_SETUP(20, "default_auto");
3939

40-
Thread thread(send_thread, NULL, osPriorityNormal, STACK_SIZE);
40+
Thread thread(osPriorityNormal, STACK_SIZE);
41+
thread.start(send_thread);
4142
bool result = true;
4243
int result_counter = 0;
4344

0 commit comments

Comments
 (0)