mirror of https://github.com/ARMmbed/mbed-os.git
Remove deprecated Thread constructor usage
parent
4f3aabc029
commit
07fc7aeb89
|
@ -21,7 +21,7 @@ typedef struct {
|
|||
|
||||
Mail<mail_t, QUEUE_SIZE> 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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue