summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_exithook.c
Commit message (Collapse)AuthorAgeFilesLines
* Some cosmetic renamingGregory Nutt2013-04-231-7/+9
|
* Reviewed all task exit logic. For pthread_exit() moved some logic higher in ↵Gregory Nutt2013-04-231-13/+40
| | | | the exit sequence that could be required to block. For lower level logic kicked off by _exit(), add logic to prevent blocking when the task is not in a healthy state.
* _exit() should not call atexit() or on_exit() functions; Rename ↵Gregory Nutt2013-04-181-1/+1
| | | | task_deletecurrent() to task_exit()
* Don't flush streams until the final thread of a group exitsGregory Nutt2013-04-181-10/+32
|
* Reorganize some AT91SAM3U files; Add an NSH kernel build configuration to ↵patacongo2013-03-111-0/+4
| | | | | | the WaveSahhare Open1788 board git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5732 42af7a65-404d-4744-a932-0658087f49c3
* Changed needed to fix issues with task_restart()patacongo2013-02-061-5/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5615 42af7a65-404d-4744-a932-0658087f49c3
* Misc clean-up and bugfixes related to multi-thread group signallingpatacongo2013-02-061-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5614 42af7a65-404d-4744-a932-0658087f49c3
* Moving pending signals to task group; Logic to recover some MQ resources on ↵patacongo2013-02-051-5/+12
| | | | | | pthread_cacancel or task_delete; Now obeys rules for delivering signals to a process with threads git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5613 42af7a65-404d-4744-a932-0658087f49c3
* Bugfix: whenever a thread it must report the PID of the main task (even it ↵patacongo2013-02-041-1/+10
| | | | | | is not the main task) with SIGCHLD git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5612 42af7a65-404d-4744-a932-0658087f49c3
* Divide struct tcb_s into structs task_tcb_s and pthread_tcb_spatacongo2013-02-041-5/+12
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5611 42af7a65-404d-4744-a932-0658087f49c3
* Rename _TCB to struct tcb_spatacongo2013-02-041-8/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5610 42af7a65-404d-4744-a932-0658087f49c3
* Move waitpid() data structures to task group; The caller of waitpid() is now ↵patacongo2013-02-041-12/+39
| | | | | | only awakened when the final thread of the task group exits git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5608 42af7a65-404d-4744-a932-0658087f49c3
* Move atexit/on_exit data structures to task group; Now callbacks only occur ↵patacongo2013-02-041-42/+61
| | | | | | when the final member of the task group exits git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5607 42af7a65-404d-4744-a932-0658087f49c3
* Move stream data from TCB to task group structure.patacongo2013-01-261-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5569 42af7a65-404d-4744-a932-0658087f49c3
* Move file data from TCB to task grouppatacongo2013-01-261-71/+111
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5567 42af7a65-404d-4744-a932-0658087f49c3
* Don't keep the parent task's task ID in the child task's TCB. Instead, keep ↵patacongo2013-01-261-41/+134
| | | | | | the parent task group IN the child task's task group. git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5566 42af7a65-404d-4744-a932-0658087f49c3
* Move environment variables in the task group structurepatacongo2013-01-251-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5565 42af7a65-404d-4744-a932-0658087f49c3
* Add logic to send SIGCHLD to all members of a task grouppatacongo2013-01-251-0/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5564 42af7a65-404d-4744-a932-0658087f49c3
* Add logic to keep track of members of a task grouppatacongo2013-01-251-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5563 42af7a65-404d-4744-a932-0658087f49c3
* Add framework to support task groupspatacongo2013-01-251-38/+68
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5562 42af7a65-404d-4744-a932-0658087f49c3
* Add logic to retain child task exit status if so configuredpatacongo2013-01-231-34/+75
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5553 42af7a65-404d-4744-a932-0658087f49c3
* Use SIGCHLD with waitpid(); implemented wait() and waitid()patacongo2013-01-131-5/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5515 42af7a65-404d-4744-a932-0658087f49c3
* Fix a *critical* bug in the task exit logic. Implements SIGCHILDpatacongo2013-01-121-0/+55
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5513 42af7a65-404d-4744-a932-0658087f49c3
* Fixe task_exithook() bug; fix timer usage in STM32 OTGFS host driverpatacongo2012-11-251-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5386 42af7a65-404d-4744-a932-0658087f49c3
* Add __cxa_atexit(); atexit() is now built on top of on_exit()patacongo2012-11-011-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5292 42af7a65-404d-4744-a932-0658087f49c3
* Add XML RPC server plus NXWM build fixes from Max Holtzbergpatacongo2012-09-141-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5150 42af7a65-404d-4744-a932-0658087f49c3
* Changes needed for clean ez80 compile with ZDS toolchainpatacongo2012-09-131-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5147 42af7a65-404d-4744-a932-0658087f49c3
* atexit() and on_exit() may now be configured to support multiple exit callbackspatacongo2012-08-011-28/+131
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4995 42af7a65-404d-4744-a932-0658087f49c3
* Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directorypatacongo2012-07-141-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4940 42af7a65-404d-4744-a932-0658087f49c3
* Rename some USB device filespatacongo2012-04-231-4/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4645 42af7a65-404d-4744-a932-0658087f49c3
* Fix atexit() function being called twicepatacongo2012-04-231-0/+18
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4644 42af7a65-404d-4744-a932-0658087f49c3
* Move file-system header files to include/nuttx/fspatacongo2012-03-211-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4499 42af7a65-404d-4744-a932-0658087f49c3
* Add on_exit(); Re-order some logic in the task shutdown sequence. Sometimes ↵patacongo2012-01-311-18/+32
| | | | | | some complex logic needs to execute when closing file descriptors and this needs to happen early while the task is still healthy git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4354 42af7a65-404d-4744-a932-0658087f49c3
* atexit() functions now called when task killed by task delete; For MCUs with ↵patacongo2011-05-281-0/+157
<= 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