Fixed a missed last argument (void *__arg) for pthread_create

Closes https://github.com/espressif/esp-idf/pull/6479
Close IDFGH-4666
pull/6828/head
Roman Alexeev 2021-01-29 18:51:29 +03:00 zatwierdzone przez Mahavir Jain
rodzic 0ce4d3f9f7
commit 7d07efb7b5
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -29,7 +29,7 @@ Example to tune the stack size of the pthread:
cfg.stack_size = (4 * 1024);
esp_pthread_set_cfg(&cfg);
pthread_create(&t1, NULL, thread_func);
pthread_create(&t1, NULL, thread_func, NULL);
}
The API can also be used for inheriting the settings across threads. For example:
@ -48,7 +48,7 @@ The API can also be used for inheriting the settings across threads. For example
{
printf("In my_thread1\n");
pthread_t t2;
pthread_create(&t2, NULL, my_thread2);
pthread_create(&t2, NULL, my_thread2, NULL);
return NULL;
}
@ -62,7 +62,7 @@ The API can also be used for inheriting the settings across threads. For example
cfg.inherit_cfg = true;
esp_pthread_set_cfg(&cfg);
pthread_create(&t1, NULL, my_thread1);
pthread_create(&t1, NULL, my_thread1, NULL);
}
API Reference