summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/tasks.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-01-11Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill1-4/+0
2016-11-10rtems: Add scheduler processor add/removeSebastian Huber1-4/+53
Update #2797.
2016-11-09score: Simplify _Scheduler_Get_by_id()Sebastian Huber1-2/+0
Avoid dead code in non-SMP configurations. Return scheduler identifier independent of the current processor count of the scheduler via rtems_scheduler_ident(), since this value may change during run-time. Check the processor count in _Scheduler_Set() under scheduler lock protection. Update #2797.
2016-11-02rtems: Add rtems_task_iterate()Sebastian Huber1-0/+32
Update #2423.
2016-09-21rtems: Add rtems_task_get_priority()Sebastian Huber1-0/+29
Update #2556. Update #2784.
2016-07-01rtems: Fix rtems_task_set_scheduler() APISebastian Huber1-7/+16
Task priorities are only valid within a scheduler instance. The rtems_task_set_scheduler() directive moves a task from one scheduler instance to another using the current priority of the thread. However, the current task priority of the source scheduler instance is undefined in the target scheduler instance. Add a third parameter to specify the priority. Close #2749.
2016-06-24score: Change Priority_Control to 64-bitSebastian Huber1-1/+1
A 32-bit Priority_Control limits the uptime to 49 days with a 1ms clock tick in case the EDF scheduler is used. Increase it to 64-bit to enable proper operation of the EDF scheduler, Close 2173.
2016-05-20score: Add per scheduler instance maximum prioritySebastian Huber1-0/+1
The priority values are only valid within a scheduler instance. Thus, the maximum priority value must be defined per scheduler instance. The first scheduler instance defines PRIORITY_MAXIMUM. This implies that RTEMS_MAXIMUM_PRIORITY and POSIX_SCHEDULER_MAXIMUM_PRIORITY are only valid for threads of the first scheduler instance. Further API/implementation changes are necessary to fix this. Update #2556.
2016-05-04rtems: Remove task variablesSebastian Huber1-46/+0
Update #2494. Update #2555.
2016-02-03Use linker set for Classic User Tasks initSebastian Huber1-9/+0
Update #2408.
2015-12-24api: Remove deprecated NotepadsAun-Ali Zaidi1-98/+0
Notepads where a feature of RTEMS' tasks that simply functioned in the same way as POSIX keys or threaded local storage (TLS). They were introduced well before per task variables, which are also deprecated, and were barely used in favor of their POSIX alternatives. In addition to their scarce usage, Notepads took up unnecessary memory. For each task: - 16 32-bit integers were allocated. - A total of 64 bytes per task per thread. This is especially critical in low memory and safety-critical applications. They are also defined as uint32_t, and therefore are not guaranteed to hold a pointer. Lastly, they are not portable solutions for SMP and uniprocessor systems, like POSIX keys and TLS. updates #2493.
2015-10-26basdefs.h: Add and use RTEMS_DEPRECATEDSebastian Huber1-6/+6
2015-03-10cpukit: deprecate task variables. closes #2293.Gedare Bloom1-3/+9
2015-03-10cpukit: deprecate notepadsGedare Bloom1-3/+9
Deprecate Classic API Notepads. Mark task_set/get_note() with the deprecated attribute, and also mark the notepads field. Replace disable with enable option for notepads in confdefs.h, and make notepads disabled by default. The previous option CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS is now unused and will emit a compile-time warning. A new option CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS is available to turn on notepads, but it also will emit a compile-time warning to indicate that notepads are deprecated. Closes #2265
2014-06-02score: _Scheduler_Set_affinity()Sebastian Huber1-0/+11
Do not change the scheduler with this function. Documentation. Coding style.
2014-05-20rtems: Clarify task set/get scheduler parametersSebastian Huber1-6/+6
2014-05-07score: Implement forced thread migrationSebastian Huber1-2/+0
The current implementation of task migration in RTEMS has some implications with respect to the interrupt latency. It is crucial to preserve the system invariant that a task can execute on at most one processor in the system at a time. This is accomplished with a boolean indicator in the task context. The processor architecture specific low-level task context switch code will mark that a task context is no longer executing and waits that the heir context stopped execution before it restores the heir context and resumes execution of the heir task. So there is one point in time in which a processor is without a task. This is essential to avoid cyclic dependencies in case multiple tasks migrate at once. Otherwise some supervising entity is necessary to prevent life-locks. Such a global supervisor would lead to scalability problems so this approach is not used. Currently the thread dispatch is performed with interrupts disabled. So in case the heir task is currently executing on another processor then this prolongs the time of disabled interrupts since one processor has to wait for another processor to make progress. It is difficult to avoid this issue with the interrupt latency since interrupts normally store the context of the interrupted task on its stack. In case a task is marked as not executing we must not use its task stack to store such an interrupt context. We cannot use the heir stack before it stopped execution on another processor. So if we enable interrupts during this transition we have to provide an alternative task independent stack for this time frame. This issue needs further investigation.
2014-05-05score: SMP_FATAL_SCHEDULER_WITHOUT_PROCESSORSSebastian Huber1-0/+2
Avoid the SMP_FATAL_SCHEDULER_WITHOUT_PROCESSORS fatal error and make it a run-time error in rtems_scheduler_ident() and _Scheduler_Get_by_id().
2014-04-17doc: rtems_task_set_scheduler()Sebastian Huber1-0/+3
2014-04-16rtems: Add const qualifierSebastian Huber1-3/+3
2014-04-15rtems: Add task get/set schedulerSebastian Huber1-0/+35
2014-04-15rtems: Add scheduler get processorsSebastian Huber1-0/+24
2014-04-15rtems: Add scheduler identificationSebastian Huber1-0/+17
2014-04-15score: Task get/set affinitySebastian Huber1-24/+26
Make rtems_task_get_affinity() and rtems_task_set_affinity() available on non-SMP configurations. Allow larger CPU sets.
2014-04-15score: Simplify thread control initializationSebastian Huber1-1/+1
The thread control block contains fields that point to application configuration dependent memory areas, like the scheduler information, the API control blocks, the user extension context table, the RTEMS notepads and the Newlib re-entrancy support. Account for these areas in the configuration and avoid extra workspace allocations for these areas. This helps also to avoid heap fragementation and reduces the per thread memory due to a reduced heap allocation overhead.
2014-04-04Disable per task variables when SMP is enabledJoel Sherrill1-5/+9
Per task variables are inherently unsafe in SMP systems. This patch disables them from the build and adds warnings in the appropriate documentation and configuration sections.
2014-03-31rtems: Use thread action for signalsSebastian Huber1-0/+6
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2014-03-07Remove trailing whitespace in previous patchesJennifer Averett1-11/+11
2014-03-07rtems: Add Classic API get and set affinity methods.Jennifer Averett1-0/+45
Add the following methods: + rtems_task_get_affinity + rtems_task_set_affinity
2013-07-26score: Create states implementation headerSebastian Huber1-1/+0
Move implementation specific parts of states.h and states.inl into new header file statesimpl.h. The states.h contains now only the application visible API.
2013-07-23rtems: Create tasks implementation headerSebastian Huber1-79/+28
Move implementation specific parts of tasks.h and tasks.inl into new header file tasksimpl.h. The tasks.h contains now only the application visible API.
2013-01-04rtems: Doxygen Clean Up Task #1Ayush Awasthi1-134/+137
2012-12-28Header File Doxygen Enhancement Task #7Mathew Kallada1-0/+2
2012-12-08misc rtems: Clean up Doxygen GCI Task #8Mathew Kallada1-20/+24
http://www.google-melange.com/gci/task/view/google/gci2012/8024203
2012-12-05rtems misc: Clean up Doxygen GCI Task #5Mathew Kallada1-8/+12
http://www.google-melange.com/gci/task/view/google/gci2012/8015207
2012-12-05rtems misc: Clean up Doxygen GCI Task #7Alex Ivanov1-2/+9
http://www.google-melange.com/gci/task/view/google/gci2012/7950206
2012-12-05rtems misc: Clean up Doxygen GCI Task #6Alex Ivanov1-10/+30
http://www.google-melange.com/gci/task/view/google/gci2012/8019205
2012-12-04rtems misc: Clean up Doxygen GCI Task #4Alex Ivanov1-2/+16
http://www.google-melange.com/gci/task/view/google/gci2012/7950205
2012-12-03cpukit: Clean up Doxygen #3 (GCI 2012)Alex Ivanov1-3/+16
2012-12-02score misc: Clean up Doxygen #14 (GCI 2012)Alex Ivanov1-1/+8
This patch is a task from GCI 2012 which improves the Doxygen comments in the RTEMS source. http://www.google-melange.com/gci/task/view/google/gci2012/8025204
2012-12-02score misc: Clean up Doxygen #14 (GCI 2012)Mathew Kallada1-1/+8
This patch is a task from GCI 2012 which improves the Doxygen comments in the RTEMS source. http://www.google-melange.com/gci/task/view/google/gci2012/8025204
2012-12-02score misc: Clean up Doxygen #12 (GCI 2012)Alex Ivanov1-10/+23
This patch is a task from GCI 2012 which improves the Doxygen comments in the RTEMS source. http://www.google-melange.com/gci/task/view/google/gci2012/8025203
2012-10-30rtems: Add system eventsSebastian Huber1-0/+2
System events are similar to normal events. They offer a second set of events. These events are intended for internal RTEMS use and should not be used by applications (with the exception of the transient system event).
2012-10-30rtems: Reusable event implementationSebastian Huber1-3/+3
Change event implementation to enable reuse for system events.
2012-10-30rtems: Remove unused event_condition memberSebastian Huber1-2/+0
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2011-12-052011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-0/+13
* posix/include/rtems/posix/pthread.h: Add _POSIX_Threads_Initialize_user_threads_body. * rtems/include/rtems/rtems/tasks.h: Add _RTEMS_tasks_Initialize_user_tasks_body. * sapi/include/confdefs.h: Remove conditional, nested redeclaration of _POSIX_Threads_Initialize_user_threads_body, _RTEMS_tasks_Initialize_user_tasks_body.
2011-12-052011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+2
* rtems/include/rtems/rtems/tasks.h: Typo fixes.
2011-08-292011-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-4/+5
* rtems/include/rtems/rtems/tasks.h: Formatting.