-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
externalmemory option. Update components/pthread/include/esp_pthread.h Co-authored-by: Ivan Grokhotkov <igrokhotkov@gmail.com> Update components/pthread/pthread.c Co-authored-by: Ivan Grokhotkov <igrokhotkov@gmail.com> MALLOC_CAP_DEFAULT as default "External ram" is probably not a very future-proof flag, since some chips might have more types of memory: TCM, internal slower memory, external faster memory, external slower memory, retention-capable memory. Using MALLOC_CAPS macros provides the same amount of flexibility as available in the heap allocation APIs. Need to add free(stack_for_task); here free(stack_for_task); free(taskTC); here as well You also need to modify the pthread deletion code to free the memory, otherwise it would be leaked. this should be done together with deleting pthread structure
- Loading branch information
1 parent
d825753
commit 0e73e7a
Showing
2 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters