mirror of
https://github.com/apache/nuttx.git
synced 2026-06-09 10:54:43 +08: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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user