mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
29c2e58c75
The thread-local-storage feature in FreeRTOS attaches an application-usable array of pointers to a thread control block. These pointers usually point to a structure the thread allocates. When a thread gets (voluntarily or involuntarily) destroyed, this memory can leak. This merge adds a matching second array of user-settable pointers to destructor routines. As soon as the task gets cleaned up (which happens in the idle thread), the destructors get called and the memory can be freed. See merge request !19
22 lines
455 B
Plaintext
22 lines
455 B
Plaintext
menu "LWIP"
|
|
|
|
config LWIP_MAX_SOCKETS
|
|
int "Max number of open sockets"
|
|
range 1 16
|
|
default 4
|
|
help
|
|
Sockets take up a certain amount of memory, and allowing fewer
|
|
sockets to be open at the same time conserves memory. Specify
|
|
the maximum amount of sockets here.
|
|
|
|
config LWIP_THREAD_LOCAL_STORAGE_INDEX
|
|
int "Index for thread-local-storage pointer for lwip"
|
|
default 0
|
|
help
|
|
Specify the thread-local-storage-pointer index for lwip
|
|
use.
|
|
|
|
endmenu
|
|
|
|
|