Remove deprecated Thread constructor usage

pull/4317/head
Bartek Szatkowski 2017-05-16 10:54:30 +01:00
parent 4f3aabc029
commit 07fc7aeb89
1 changed files with 3 additions and 2 deletions

View File

@ -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;