mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 21:54:33 +02:00
Typo pthread doc: create->get
I believe that: esp_create_default_pthread_config is a typo (no such function exists), the intention was almost certainly to use: esp_pthread_get_default_config Closes https://github.com/espressif/esp-idf/pull/6869/
This commit is contained in:
@@ -26,7 +26,7 @@ Example to tune the stack size of the pthread:
|
||||
{
|
||||
pthread_t t1;
|
||||
|
||||
esp_pthread_cfg_t cfg = esp_create_default_pthread_config();
|
||||
esp_pthread_cfg_t cfg = esp_pthread_get_default_config();
|
||||
cfg.stack_size = (4 * 1024);
|
||||
esp_pthread_set_cfg(&cfg);
|
||||
|
||||
@@ -58,7 +58,7 @@ The API can also be used for inheriting the settings across threads. For example
|
||||
{
|
||||
pthread_t t1;
|
||||
|
||||
esp_pthread_cfg_t cfg = esp_create_default_pthread_config();
|
||||
esp_pthread_cfg_t cfg = esp_pthread_get_default_config();
|
||||
cfg.stack_size = (4 * 1024);
|
||||
cfg.inherit_cfg = true;
|
||||
esp_pthread_set_cfg(&cfg);
|
||||
|
Reference in New Issue
Block a user