summaryrefslogtreecommitdiff
path: root/nuttx/sched
Commit message (Collapse)AuthorAgeFilesLines
...
* Changed needed to fix issues with task_restart()patacongo2013-02-0617-186/+573
| | | | 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-063-4/+2
| | | | 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-0524-432/+882
| | | | | | 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-0417-49/+71
| | | | | | 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-0419-143/+254
| | | | 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-04107-317/+321
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5610 42af7a65-404d-4744-a932-0658087f49c3
* Move list of open message queues to task group. Now message queues opened ↵patacongo2013-02-046-38/+150
| | | | | | by members of the group will be closed when the last member of the group exits. git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5609 42af7a65-404d-4744-a932-0658087f49c3
* Move waitpid() data structures to task group; The caller of waitpid() is now ↵patacongo2013-02-042-18/+51
| | | | | | 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-044-63/+95
| | | | | | 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
* Make the names of the execsem consistent; Need defaults for some CONFIG_ ↵patacongo2013-02-033-8/+8
| | | | | | settings git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5605 42af7a65-404d-4744-a932-0658087f49c3
* Now that join info is in the task group, need to free when task group exits. ↵patacongo2013-02-035-5/+129
| | | | | | Used to be stranded git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5603 42af7a65-404d-4744-a932-0658087f49c3
* Move pthread join and key creation data into the task grouppatacongo2013-02-0318-212/+284
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5602 42af7a65-404d-4744-a932-0658087f49c3
* Correct a memory leak in NSHpatacongo2013-02-023-10/+45
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5600 42af7a65-404d-4744-a932-0658087f49c3
* New interface task_spawn(); exec_builtin() now uses task_spawn(); All argv ↵patacongo2013-02-0212-283/+970
| | | | | | types should be char * const * not const char ** git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5598 42af7a65-404d-4744-a932-0658087f49c3
* Add configs/stm32f4discovery/usbnshpatacongo2013-01-272-8/+16
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5572 42af7a65-404d-4744-a932-0658087f49c3
* Add a start hook that can be setup to call a function in the context of a ↵patacongo2013-01-277-2/+129
| | | | | | new thread before the new threads main() has been called. git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5571 42af7a65-404d-4744-a932-0658087f49c3
* Move socket data from TCB to task group structure.patacongo2013-01-2620-317/+104
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5570 42af7a65-404d-4744-a932-0658087f49c3
* Move stream data from TCB to task group structure.patacongo2013-01-268-59/+34
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5569 42af7a65-404d-4744-a932-0658087f49c3
* Fix a recently introduced memory leakpatacongo2013-01-265-51/+75
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5568 42af7a65-404d-4744-a932-0658087f49c3
* Move file data from TCB to task grouppatacongo2013-01-268-123/+169
| | | | 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-2614-215/+912
| | | | | | 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-2531-450/+275
| | | | 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-254-4/+155
| | | | 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-259-51/+279
| | | | 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-2518-134/+600
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5562 42af7a65-404d-4744-a932-0658087f49c3
* Fix some compilation errors when child status disabled; new waitpid logic ↵patacongo2013-01-255-15/+15
| | | | | | not encoding/decoding status properly git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5561 42af7a65-404d-4744-a932-0658087f49c3
* Fix some missing logic and inconsistencies in child status logic; Fix a bug ↵patacongo2013-01-248-102/+279
| | | | | | introduced into sigaction() git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5560 42af7a65-404d-4744-a932-0658087f49c3
* Add psock_poll(); Fix some warnings reported by Lorenz Meier; lm4f logic from JPpatacongo2013-01-241-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5557 42af7a65-404d-4744-a932-0658087f49c3
* apps/examples/nettest and poll: Complete Kconfig filespatacongo2013-01-241-10/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5556 42af7a65-404d-4744-a932-0658087f49c3
* Convert configs/olimex-lpc1766stk/nettest to use kconfig-frontendspatacongo2013-01-241-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5555 42af7a65-404d-4744-a932-0658087f49c3
* Add logic to retain child task exit status if so configuredpatacongo2013-01-2314-182/+564
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5553 42af7a65-404d-4744-a932-0658087f49c3
* lpc1788 update from Rommel Marcelo; Beginning of logic to retain child exit ↵patacongo2013-01-225-3/+392
| | | | | | status git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5549 42af7a65-404d-4744-a932-0658087f49c3
* Beginnings of definitions for the LPC1788; convert olimex-lpc1766stk to use ↵patacongo2013-01-184-125/+129
| | | | | | kconfig-frontends git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5533 42af7a65-404d-4744-a932-0658087f49c3
* Add internal API task_reparent(), used in posix_spawn(). Move ↵patacongo2013-01-184-1/+826
| | | | | | libc/spawn/lib_ps.c to sched/task_posixspawn.c; Move libc/spawn/spawn.h to include/nuttx/spawn.h git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5531 42af7a65-404d-4744-a932-0658087f49c3
* Add logic to automatically unload module on exit; Several patches from Mike ↵patacongo2013-01-171-19/+17
| | | | | | Smith git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5528 42af7a65-404d-4744-a932-0658087f49c3
* Implement vfork() for the MIPS32 architecturepatacongo2013-01-151-2/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5520 42af7a65-404d-4744-a932-0658087f49c3
* Finish dup logic for open files; fix bug in sigtimedwait(), would return ↵patacongo2013-01-143-4/+4
| | | | | | wrong signo value if the signal was already pending git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5517 42af7a65-404d-4744-a932-0658087f49c3
* Use SIGCHLD with waitpid(); implemented wait() and waitid()patacongo2013-01-138-29/+561
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5515 42af7a65-404d-4744-a932-0658087f49c3
* Cosmetic cleanup from SIGCHLD changespatacongo2013-01-131-2/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5514 42af7a65-404d-4744-a932-0658087f49c3
* Fix a *critical* bug in the task exit logic. Implements SIGCHILDpatacongo2013-01-1210-15/+197
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5513 42af7a65-404d-4744-a932-0658087f49c3
* Various changes while debugging posix_spawnpatacongo2013-01-111-0/+61
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5510 42af7a65-404d-4744-a932-0658087f49c3
* Add missing support for signal masks to posix_spawn.patacongo2013-01-101-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5505 42af7a65-404d-4744-a932-0658087f49c3
* Fix rounding in clock_time2ticks(). From Mike Smith.patacongo2013-01-101-4/+38
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5502 42af7a65-404d-4744-a932-0658087f49c3
* Add ostest vfork test (does not work yet)patacongo2013-01-073-6/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5488 42af7a65-404d-4744-a932-0658087f49c3
* This initial vfork() check-in was a little pollyanna-ishpatacongo2013-01-074-2/+271
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5487 42af7a65-404d-4744-a932-0658087f49c3
* Remove CONFIG_BUILTIN_APPS_STARTpatacongo2013-01-061-20/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5482 42af7a65-404d-4744-a932-0658087f49c3
* Fixes for l3s, USB composite, nfsmount, apps context build problemspatacongo2012-12-241-2/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5458 42af7a65-404d-4744-a932-0658087f49c3
* Correct round-to-ticks logic in sigtimedwait()patacongo2012-12-241-3/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5457 42af7a65-404d-4744-a932-0658087f49c3
* Rename namedapp as simply builtinpatacongo2012-12-231-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5454 42af7a65-404d-4744-a932-0658087f49c3
* Add basic hooks to support a PATH variable (more is needed)patacongo2012-12-164-5/+24
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5440 42af7a65-404d-4744-a932-0658087f49c3