From 07fc7aeb89103db33f15e7d7e9c4c7964796fe94 Mon Sep 17 00:00:00 2001 From: Bartek Szatkowski Date: Tue, 16 May 2017 10:54:30 +0100 Subject: [PATCH] Remove deprecated Thread constructor usage --- TESTS/mbedmicro-rtos-mbed/mail/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TESTS/mbedmicro-rtos-mbed/mail/main.cpp b/TESTS/mbedmicro-rtos-mbed/mail/main.cpp index 0a71cae8ef..f66e307e52 100644 --- a/TESTS/mbedmicro-rtos-mbed/mail/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/mail/main.cpp @@ -21,7 +21,7 @@ typedef struct { Mail mail_box; -void send_thread (void const *argument) { +void send_thread () { static uint32_t i = 10; while (true) { i++; // fake data update @@ -37,7 +37,8 @@ void send_thread (void const *argument) { int main (void) { GREENTEA_SETUP(20, "default_auto"); - Thread thread(send_thread, NULL, osPriorityNormal, STACK_SIZE); + Thread thread(osPriorityNormal, STACK_SIZE); + thread.start(send_thread); bool result = true; int result_counter = 0;