summaryrefslogtreecommitdiff
path: root/nuttx/sched
Commit message (Collapse)AuthorAgeFilesLines
* Semaphores: sem_waitirq.c must be built when signals are disabled. That is ↵Gregory Nutt2014-12-283-14/+13
| | | | because not handles not only the case of semaphore wait being awakened by a signal, but also the case with sem_timedwait.c when the semaphore wait is awakened by a timeout.
* Semahores: Remove a warning with SIGNALS are disabledGregory Nutt2014-12-281-2/+0
|
* strncpy will not copy the terminating \0 into the destination if the source ↵Gregory Nutt2014-12-175-4/+10
| | | | is larger than the size of the destination. Ensure that the last byte is always zero and let strncpy only copy CONFIG_TASK_NAME_SIZE bytes. The issue of unterminated names can be observed in ps when creating a pthread while CONFIG_TASK_NAME_SIZE is set to 8.
* Sempahores: Add logic to clean up after task_delete() or pthread_cancel() ↵Gregory Nutt2014-12-137-22/+304
| | | | if the task happens to be waiting on a semaphore when it is cancelled
* Costmetic change to a commentGregory Nutt2014-12-131-1/+1
|
* In message queue created return ENOSPC error if size exceeds the configured ↵Gregory Nutt2014-12-062-14/+20
| | | | size of pre-allocatd messages; Use ENOSPC vs ENOMEM per OpenGroup.org. From Pierre-Noel Bouteville
* msg type should be char * not void * in mq_send, mq_timedsend, mq_receive, ↵Gregory Nutt2014-12-057-27/+26
| | | | and mq_timedreceive. Noted by Pierre-Noel Bouteville
* Fix more issues detected by cppcheckGregory Nutt2014-11-251-5/+3
|
* More fixes to problems noted by cppcheck. Some are kind of risky; some are ↵Gregory Nutt2014-11-254-5/+6
| | | | real bugs.
* Cosmetic chnages to commentsGregory Nutt2014-11-201-0/+6
|
* alling mq_timedreceived with immediate timeout was getting stuck and notGregory Nutt2014-11-191-2/+39
| | | | | | | | | | | | | timeout. Immediate timeout is achieved by setting absolute timeout value to past time, for example abstime={ .tv_sec=0, .tv_nsec=0 }. However absolute time was converted to relative time using unsigned integer arithmetic and resulted large ticks count by clock_abstime2ticks, instead of expected negative ticks value. Patch corrects clock_abstime2ticks to return negative ticks, if absolute time is in the past. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@haltian.com>
* Fix some compile issues introduces with removal of CONFIG_MAX_TASK_ARGSGregory Nutt2014-11-141-1/+5
|
* Fix some compile errors introduce in last commitsGregory Nutt2014-11-131-1/+1
|
* task_create: Don't even try if the accumulated size of the argument list is ↵Gregory Nutt2014-11-131-1/+8
| | | | larger than the stack
* vfork no longer depends on CONFIG_MAX_TASK_ARGSGregory Nutt2014-11-122-18/+51
|
* task_start() no longer depends on CONFIG_MAX_TASK_ARGSGregory Nutt2014-11-121-0/+5
|
* task_setup() no longer depends on CONFIG_MAX_TASK_ARGSGregory Nutt2014-11-121-8/+19
|
* Remove CONFIG_MAX_TASK_ARGS from all Kconfigs and defconfigsGregory Nutt2014-11-121-7/+0
|
* Fix an important bug in the watchdog creation logicGregory Nutt2014-11-101-1/+1
|
* Fix incorrect commentGregory Nutt2014-11-071-3/+1
|
* More fixes to tickless operation, alarm/mode code. From Brandon WarhurstGregory Nutt2014-10-231-1/+7
|
* Fixes to tickless operation code. From Brandon WarhurstGregory Nutt2014-10-231-5/+5
|
* Default for CONFIG_SCHED_HPWORK should be noGregory Nutt2014-10-141-1/+1
|
* Add description of work queues to the porting guide. Update commentsGregory Nutt2014-10-141-5/+5
|
* Missing workqueue logicGregory Nutt2014-10-121-0/+3
|
* Fix one missed name change from last big commitGregory Nutt2014-10-121-3/+3
|
* Change naming of HP work queue configuration varaibles to be symmetric with ↵Gregory Nutt2014-10-112-7/+7
| | | | LP work queue naming
* Eliminate warningsGregory Nutt2014-10-111-1/+1
|
* Rename CONFIG_SCHED_USRWORK to CONFIG_LIB_USRWORKGregory Nutt2014-10-112-4/+4
|
* Decouple the user-space work queue from the kernel space work queuesGregory Nutt2014-10-111-1/+170
|
* Make building of low-priority work queue independent of also building the ↵Gregory Nutt2014-10-111-11/+3
| | | | high-priority work queue
* Fix some missing conditional compilation that caused build failures in some ↵Gregory Nutt2014-10-111-2/+5
| | | | configurations
* Fix a couple of problems introduced in the last commmitsGregory Nutt2014-10-111-0/+1
|
* If there mutliple low-priority worker threads, only one needs to perform ↵Gregory Nutt2014-10-114-54/+95
| | | | garbage collection
* Add logic for priority inheritance with multiple worker threads. How should ↵Gregory Nutt2014-10-101-45/+100
| | | | this work? Tentatively, the all get reprioritized together. It would be best to just reprioritize the single thread doing the high priority work, but we don't know which that will be in advance
* Add support for multiple low-priority worker threadsGregory Nutt2014-10-108-48/+171
|
* Fix a few bugs introduced in the last checkinGregory Nutt2014-10-101-4/+2
|
* User-mode work queue logic should not disable interruptsGregory Nutt2014-10-105-1/+389
|
* Add support for delays of different durations in work queue processingGregory Nutt2014-10-104-18/+22
|
* Minor changes to work queue timing logicGregory Nutt2014-10-102-0/+10
|
* Modularize starting of worker threads to better isolate individual ↵Gregory Nutt2014-10-104-93/+153
| | | | initialization characteristics
* Fix some conditional logic in last work queue repartitioning changeGregory Nutt2014-10-102-4/+1
|
* Decoupling work queue data structures. This is part of the preparation to ↵Gregory Nutt2014-10-109-18/+420
| | | | support multiple low-priority worker threads
* Repartition work queue code. Move kernel-specific parts from libc/wqueue to ↵Gregory Nutt2014-10-106-5/+377
| | | | sched/wqueue
* Update some Kconfig comments; Add a upper limit on the lower priority worker ↵Gregory Nutt2014-10-071-0/+14
| | | | thread for priority inheritance
* Simplify how C source files are selected in the buildGregory Nutt2014-10-0716-81/+81
|
* Add support for priority inheritance on the low priority worker queueGregory Nutt2014-10-073-7/+383
|
* Cosmetic change to commentsGregory Nutt2014-10-061-34/+51
|
* fs_initialize() is no longer weakGregory Nutt2014-10-061-6/+1
|
* Major structure of file system functions to better support asynchronous I/O. ↵Gregory Nutt2014-10-062-3/+3
| | | | Respository should not be trusted until I have a chance to verify everything