Skip to content

Commit

Permalink
Merge branch 'doc/fix_pthread_create_example' into 'release/v4.3'
Browse files Browse the repository at this point in the history
doc: fixed pthread_create call in example

See merge request espressif/esp-idf!23355
  • Loading branch information
Zim Kalinowski committed Apr 24, 2023
2 parents 551de84 + 30f065a commit 33b3db3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/en/api-reference/system/esp_pthread.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,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:
Expand All @@ -49,7 +49,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;
}
Expand All @@ -63,7 +63,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
Expand Down

0 comments on commit 33b3db3

Please sign in to comment.