summaryrefslogtreecommitdiff
path: root/nuttx/sched/os_internal.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove up_assert_codeGregory Nutt2013-04-251-30/+0
|
* Reviewed all task exit logic. For pthread_exit() moved some logic higher in ↵Gregory Nutt2013-04-231-1/+2
| | | | 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()
* Change prototypes of up_create_stack and up_release_stack to include a task ↵patacongo2013-03-201-1/+1
| | | | | | type parameter git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5765 42af7a65-404d-4744-a932-0658087f49c3
* Create sched_ufree and sched_kfree from sched_free; Use user-accessible heap ↵patacongo2013-03-101-5/+9
| | | | | | to allocae stacks git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5725 42af7a65-404d-4744-a932-0658087f49c3
* Move work queue logic from sched/ to libc/wqueue. It is not core logic and ↵patacongo2013-03-051-1/+0
| | | | | | will be extended to support user-space work queues git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5711 42af7a65-404d-4744-a932-0658087f49c3
* Changed needed to fix issues with task_restart()patacongo2013-02-061-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5615 42af7a65-404d-4744-a932-0658087f49c3
* Divide struct tcb_s into structs task_tcb_s and pthread_tcb_spatacongo2013-02-041-2/+2
| | | | 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-16/+16
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5610 42af7a65-404d-4744-a932-0658087f49c3
* New interface task_spawn(); exec_builtin() now uses task_spawn(); All argv ↵patacongo2013-02-021-3/+3
| | | | | | 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
* Move socket data from TCB to task group structure.patacongo2013-01-261-17/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5570 42af7a65-404d-4744-a932-0658087f49c3
* Fix a recently introduced memory leakpatacongo2013-01-261-2/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5568 42af7a65-404d-4744-a932-0658087f49c3
* Move environment variables in the task group structurepatacongo2013-01-251-35/+3
| | | | 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-3/+11
| | | | 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-4/+6
| | | | 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-1/+14
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5562 42af7a65-404d-4744-a932-0658087f49c3
* Fix some missing logic and inconsistencies in child status logic; Fix a bug ↵patacongo2013-01-241-0/+1
| | | | | | introduced into sigaction() git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5560 42af7a65-404d-4744-a932-0658087f49c3
* Add logic to retain child task exit status if so configuredpatacongo2013-01-231-4/+3
| | | | 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-221-1/+11
| | | | | | 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-181-1/+1
| | | | | | 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-181-0/+3
| | | | | | 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
* Use SIGCHLD with waitpid(); implemented wait() and waitid()patacongo2013-01-131-3/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5515 42af7a65-404d-4744-a932-0658087f49c3
* Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directorypatacongo2012-07-141-56/+55
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4940 42af7a65-404d-4744-a932-0658087f49c3
* Updated comments; starting to implement priority protection but backed ↵patacongo2012-03-231-1/+1
| | | | | | everything out but some changes to comments git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4510 42af7a65-404d-4744-a932-0658087f49c3
* Fixes for good C++ linkpatacongo2011-10-191-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4054 42af7a65-404d-4744-a932-0658087f49c3
* Fix message queue/signal handling bugspatacongo2011-08-071-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3849 42af7a65-404d-4744-a932-0658087f49c3
* atexit() functions now called when task killed by task delete; For MCUs with ↵patacongo2011-05-281-0/+1
| | | | | | <= 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
* I2C fixes from Uros; USB serial fix from Sheref; + A little more kernel mode ↵patacongo2011-04-071-2/+2
| | | | | | stuff git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3479 42af7a65-404d-4744-a932-0658087f49c3
* Add support for kernel-mode threadspatacongo2011-04-071-1/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3478 42af7a65-404d-4744-a932-0658087f49c3
* More apps/ related changespatacongo2011-03-121-1/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3372 42af7a65-404d-4744-a932-0658087f49c3
* Completes demand paging core implementationpatacongo2010-08-151-1/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2853 42af7a65-404d-4744-a932-0658087f49c3
* Switching to C99 stdbool.h typespatacongo2009-12-141-27/+27
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2339 42af7a65-404d-4744-a932-0658087f49c3
* Switching to C99 stdint.h typespatacongo2009-12-141-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2336 42af7a65-404d-4744-a932-0658087f49c3
* types blkcnt_t and off_t should not depend on memory model; Remove ↵patacongo2009-12-131-3/+3
| | | | | | non-standard type STATUS git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2330 42af7a65-404d-4744-a932-0658087f49c3
* Incorporate the work threadpatacongo2009-11-051-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2230 42af7a65-404d-4744-a932-0658087f49c3
* More priority inheritance logicpatacongo2009-03-121-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1593 42af7a65-404d-4744-a932-0658087f49c3
* Repartition functionality in preparation for nested, pending reprioritizationpatacongo2009-03-101-1/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1591 42af7a65-404d-4744-a932-0658087f49c3
* Improve internal priority setting logipatacongo2009-03-101-1/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1587 42af7a65-404d-4744-a932-0658087f49c3
* Add support for priority inheritancepatacongo2009-03-081-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1581 42af7a65-404d-4744-a932-0658087f49c3
* errno now defined to be *get_errno_ptr()patacongo2008-02-011-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@607 42af7a65-404d-4744-a932-0658087f49c3
* errno was clobbered by mm_trysemaphore when task existspatacongo2008-01-301-16/+17
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@591 42af7a65-404d-4744-a932-0658087f49c3
* Changes for ZNeo compilepatacongo2008-01-091-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@539 42af7a65-404d-4744-a932-0658087f49c3
* Added network init; refactored some header filespatacongo2007-09-091-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@338 42af7a65-404d-4744-a932-0658087f49c3
* Added support for socket descriptorspatacongo2007-09-011-3/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@318 42af7a65-404d-4744-a932-0658087f49c3
* Add new pthread_* APIspatacongo2007-03-231-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@134 42af7a65-404d-4744-a932-0658087f49c3
* Add 8052 IRQ test; Fix places where IDLE task could try to wait on semaphoresnuttx-1.1patacongo2007-03-141-11/+11
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@61 42af7a65-404d-4744-a932-0658087f49c3
* 8052 context switch/interrupt integration; pthread arg setup changedpatacongo2007-03-131-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@60 42af7a65-404d-4744-a932-0658087f49c3
* Divided _task_init() in several smaller functions that take fewer paramters. ↵patacongo2007-03-111-3/+4
| | | | | | This was necessary to reduce the stack usage for the 8051/2 which has a tiny, 256 byte stack git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@58 42af7a65-404d-4744-a932-0658087f49c3
* task_create now accepts variable number of arguments; 8051 bringup changespatacongo2007-03-111-4/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@56 42af7a65-404d-4744-a932-0658087f49c3
* Code complete for 8051 (not tested)patacongo2007-03-021-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@29 42af7a65-404d-4744-a932-0658087f49c3