mirror of
https://github.com/apache/nuttx.git
synced 2026-09-14 14:40:23 +00:00
atexit() functions now called when task killed by task delete; For MCUs with <= 64Kb of SRAM, CONFIG_MM_SMALL can be defined to reduce the memory allocation overhead
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3648 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
a155d4f576
commit
ae8cfb1bf1
19 changed files with 334 additions and 115 deletions
|
|
@ -137,7 +137,7 @@ typedef union entry_u entry_t;
|
|||
* (if registered via atexit()).
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_SCHED_ATEXT
|
||||
#ifdef CONFIG_SCHED_ATEXIT
|
||||
typedef void (*exitfunc_t)(void);
|
||||
#endif
|
||||
|
||||
|
|
@ -184,7 +184,7 @@ struct _TCB
|
|||
pid_t pid; /* This is the ID of the thread */
|
||||
start_t start; /* Thread start function */
|
||||
entry_t entry; /* Entry Point into the thread */
|
||||
#ifdef CONFIG_SCHED_ATEXT
|
||||
#ifdef CONFIG_SCHED_ATEXIT
|
||||
exitfunc_t exitfunc; /* Called if exit is called. */
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_WAITPID /* Experimental */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue