summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/threadimpl.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-04-04doxygen: Rename Score* groups in RTEMSScore*Sebastian Huber1-1/+1
Update #3706
2018-12-14score: Static Objects_Information initializationSebastian Huber1-20/+2
Statically allocate the objects information together with the initial set of objects either via <rtems/confdefs.h>. Provide default object informations with zero objects via librtemscpu.a. This greatly simplifies the workspace size estimate. RTEMS applications which do not use the unlimited objects option are easier to debug since all objects reside now in statically allocated objects of the right types. Close #3621.
2018-12-07score: Avoid sbintime_t in API headersSebastian Huber1-0/+1
The sbintime_t is a non-POSIX type and not visible if strict standard options are selected. Move implementation details from <rtems/score/timestamp.h> to <rtems/score/timestampimpl.h>. Update #3598.
2018-10-29score: Remove bogus thread object name supportSebastian Huber1-3/+1
Update #2514.
2018-09-10score: Add thread pin/unpin supportSebastian Huber1-1/+51
Add support to temporarily pin a thread to its current processor. This may be used to access per-processor data structures in critical sections with enabled thread dispatching, e.g. a pinned thread is allowed to block. Update #3508.
2018-08-29score: Remove redundant #ifdef RTEMS_SMPSebastian Huber1-2/+0
2018-07-16score: Avoid structurally dead codeSebastian Huber1-3/+2
This was spotted by Coverity Scan.
2018-02-02score: Introduce new monotonic clockSebastian Huber1-6/+7
Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS. Add new PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured by timecounter). Close #3264.
2018-01-25Remove make preinstallChris Johns1-0/+0
A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
2017-11-22score: Simplify global constructionSebastian Huber1-13/+10
Update #3243.
2017-10-24score: Add _Thread_Continue()Sebastian Huber1-2/+16
Update #3117. Update #3182.
2017-10-24score: Add _Thread_Add_timeout_ticks()Sebastian Huber1-6/+5
Replace _Thread_Timer_insert_monotonic() with _Thread_Add_timeout_ticks(). Update #3117. Update #3182.
2017-10-17score: Rename _Watchdog_Per_CPU_insert_monotonic()Sebastian Huber1-1/+1
Rename _Watchdog_Per_CPU_insert_monotonic() in _Watchdog_Per_CPU_insert_ticks(). Update #3117. Update #3182.
2017-10-17score: Rename watchdog variantsSebastian Huber1-7/+7
Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to highlight the corresponding POSIX CLOCK_MONOTONIC. Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to highlight the corresponding POSIX CLOCK_REALTIME. Update #3117. Update #3182.
2017-10-12score: Remove unused function declarationSebastian Huber1-15/+0
2017-09-27score: Rename to _Scheduler_ControlSebastian Huber1-1/+1
Rename struct Scheduler_Control to _Scheduler_Control to allow its use in standard header files, e.g. <pthread.h>. Update #3112.
2017-02-03score: Move _Thread_Scheduler_ask_for_help()Sebastian Huber1-2/+0
Move _Thread_Scheduler_ask_for_help(), rename it to _Thread_Ask_for_help() and make it static.
2017-01-13score: Add _Thread_Set_name()Sebastian Huber1-0/+5
Add configuration option CONFIGURE_MAXIMUM_THREAD_NAME_SIZE. Update #2858.
2017-01-13score: Add and use _Thread_Get_name()Sebastian Huber1-1/+7
Update #2858.
2016-12-02score: Initialize thread queue context earlySebastian Huber1-3/+0
Initialize thread queue context early preferably outside the critical section. Remove implicit _Thread_queue_Context_initialize() from _Thread_Wait_acquire().
2016-11-23score: Add thread queue enqueue calloutSebastian Huber1-1/+10
Replace the expected thread dispatch disable level with a thread queue enqueue callout. This enables the use of _Thread_Dispatch_direct() in the thread queue enqueue procedure. This avoids impossible exection paths, e.g. Per_CPU_Control::dispatch_necessary is always true.
2016-11-03score: Conditionally enable thread resource countSebastian Huber1-0/+10
Maintain the thread resource count only in debug configurations. This is a performance optimization for non-debug configurations.
2016-11-03score: Introduce thread resource count methodsSebastian Huber1-0/+14
This makes it easier to conditionally enable/disable the thread resource count usage.
2016-11-02score: Introduce Thread_Scheduler_control::homeSebastian Huber1-0/+12
Replace Thread_Scheduler_control::control and Thread_Scheduler_control::own_control with new Thread_Scheduler_control::home. Update #2556.
2016-11-02score: Delete Thread_Scheduler_control::own_nodeSebastian Huber1-12/+1
Update #2556.
2016-11-02score: Second part of new MrsP implementationSebastian Huber1-0/+7
Update #2556.
2016-11-02score: Delete _Scheduler_Ask_for_help_if_necessarySebastian Huber1-17/+2
Delete Thread_Control::Resource_node. Update #2556.
2016-11-02score: First part of new MrsP implementationSebastian Huber1-0/+11
Update #2556.
2016-11-02score: Add new SMP scheduler helping protocolSebastian Huber1-0/+24
Update #2556.
2016-11-02score: Add _Thread_Scheduler_process_requests()Sebastian Huber1-0/+2
Update #2556.
2016-11-02score: Add scheduler node requestsSebastian Huber1-1/+46
Add the ability to add/remove scheduler nodes to/from the set of scheduler nodes available to the schedulers for a particular thread. Update #2556.
2016-11-02score: Add thread scheduler lockSebastian Huber1-0/+16
Update #2556.
2016-11-02score: Add _Thread_Scheduler_remove_wait_node()Sebastian Huber1-0/+9
Update #2556.
2016-11-02score: Add _Thread_Scheduler_add_wait_node()Sebastian Huber1-0/+13
Update #2556.
2016-11-02rtems: Add rtems_task_iterate()Sebastian Huber1-0/+7
Update #2423.
2016-09-21score: Scheduler node awareness for thread queuesSebastian Huber1-8/+37
Maintain the priority of a thread for each scheduler instance via the thread queue enqueue, extract, priority actions and surrender operations. This replaces the primitive priority boosting. Update #2556.
2016-09-21score: Add scheduler node table for each threadSebastian Huber1-1/+17
Update #2556.
2016-09-21score: Rework thread priority managementSebastian Huber1-94/+167
Add priority nodes which contribute to the overall thread priority. The actual priority of a thread is now an aggregation of priority nodes. The thread priority aggregation for the home scheduler instance of a thread consists of at least one priority node, which is normally the real priority of the thread. The locking protocols (e.g. priority ceiling and priority inheritance), rate-monotonic period objects and the POSIX sporadic server add, change and remove priority nodes. A thread changes its priority now immediately, e.g. priority changes are not deferred until the thread releases its last resource. Replace the _Thread_Change_priority() function with * _Thread_Priority_perform_actions(), * _Thread_Priority_add(), * _Thread_Priority_remove(), * _Thread_Priority_change(), and * _Thread_Priority_update(). Update #2412. Update #2556.
2016-09-08score: Introduce _Thread_Get_priority()Sebastian Huber1-0/+18
Avoid direct access to thread internal data fields.
2016-09-08score: Add scheduler node implementation headerSebastian Huber1-0/+1
Update #2556.
2016-09-08score: Move thread wait node to scheduler nodeSebastian Huber1-6/+0
Update #2556.
2016-09-08score: Introduce Thread_queue_Lock_contextSebastian Huber1-35/+45
Introduce Thread_queue_Lock_context to contain the context necessary for thread queue lock and thread wait lock acquire/release operations to reduce the Thread_Control size.
2016-09-08score: Simplify thread queue acquire/releaseSebastian Huber1-4/+6
2016-09-07score: Remove superfluous SMP debug supportSebastian Huber1-13/+0
This information turned out to be useless in the last couple of months.
2016-08-03score: Fix and simplify thread wait locksSebastian Huber1-63/+72
There was a subtile race condition in _Thread_queue_Do_extract_locked(). It must first update the thread wait flags and then restore the default thread wait state. In the previous implementation this could lead under rare timing conditions to an ineffective _Thread_Wait_tranquilize() resulting to a corrupt system state. Update #2556.
2016-07-27score: Turn thread lock into thread wait lockSebastian Huber1-212/+306
The _Thread_Lock_acquire() function had a potentially infinite run-time due to the lack of fairness at atomic operations level. Update #2412. Update #2556. Update #2765.
2016-07-27score: Priority inherit thread queue operationsSebastian Huber1-31/+0
Move the priority change due to priority interitance to the thread queue enqueue operation to simplify the locking on SMP configurations. Update #2412. Update #2556. Update #2765.
2016-07-27score: Split _Thread_Change_priority()Sebastian Huber1-0/+10
Update #2412. Update #2556. Update #2765.
2016-07-26score: FormatSebastian Huber1-7/+6
2016-07-25cpukit: Add and use Watchdog_Discipline.Gedare Bloom1-4/+7
Clock disciplines may be WATCHDOG_RELATIVE, WATCHDOG_ABSOLUTE, or WATCHDOG_NO_TIMEOUT. A discipline of WATCHDOG_RELATIVE with a timeout of WATCHDOG_NO_TIMEOUT is equivalent to a discipline of WATCHDOG_NO_TIMEOUT. updates #2732