summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/threadimpl.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use alias for rtems_task_self() and pthread_self()Sebastian Huber2021-04-301-0/+7
| | | | This may reduce the code size a bit.
* Return status code for _Thread_Start()Sebastian Huber2021-04-271-4/+3
| | | | | This avoids having conditional statements to get the API-specific status code.
* score: Add Thread_Configuration::cpu_time_budgetSebastian Huber2021-03-161-0/+5
| | | | | Move the CPU time budget to the thread configuration. This simplifies _Thread_Initialize().
* score: Fix thread initializationSebastian Huber2021-02-261-3/+19
| | | | | | | | Close the thread object if a thread create extension fails. Also call the delete extension to avoid resource leaks in early extensions if a late extension fails. Close #4270.
* score: Remove _Objects_Open()Sebastian Huber2021-02-241-2/+2
| | | | | Use the type safe _Objects_Open_u32() instead. Return the object identifier to enforce a common usage pattern.
* score: Add _Thread_Append_post_switch_action()Sebastian Huber2021-02-201-4/+34
| | | | Update #4244.
* score: Add _Thread_Get_objects_information()Sebastian Huber2021-02-011-0/+24
| | | | | | | | | | | | | | | | | | | | | We do not need all the checks if we have a valid indentifier to a thread class object. Using the new _Thread_Get_objects_information() instead of the inline function _Thread_Get_objects_information_by_id() avoids dead code since the identifier in a thread control is always valid and the return NULL path in _Thread_Get_objects_information_by_id() would be dead code. The _Thread_Get_objects_information_by_id() should be an inline function since it is used by _Thread_Get() and thus performance critical. Static analyzers which cannot derive that the identifier in a thread control is always valid, may find a potential NULL pointer access (or otherwise find dead code). The identifier in an object control is always valid, see _Objects_Initialize_information() and _Objects_Extend_information(). Move _RTEMS_tasks_Free() to the only source file which calls this function.
* score: Rename _Thread_Get_objects_information()Sebastian Huber2021-02-011-5/+9
| | | | | | Rename _Thread_Get_objects_information() in _Thread_Get_objects_information_by_id() to emphasize that this thread method uses an object identifier and not a thread control.
* score: Canonicalize Doxygen @file commentsSebastian Huber2020-12-021-4/+2
| | | | | | Use common phrases for the file brief descriptions. Update #3706.
* Remove *_Is_null() inline functionsSebastian Huber2020-10-141-15/+0
| | | | Simply compare the values against NULL.
* rtems: Improve RTEMS_NO_RETURN attributeSebastian Huber2020-10-101-3/+3
| | | | | | | | | | | Provide RTEMS_NO_RETURN also in case RTEMS_DEBUG is defined to prevent errors like this: error: no return statement in function returning non-void [-Werror=return-type] Use C11 and C++11 standard means to declare a no-return function. Close #4122.
* score: Add stack free handler to TCBSebastian Huber2020-08-311-2/+4
| | | | | | | This avoids a dependency to the stack free function in the thread destruction. Update #3959.
* score: Improve _Thread_Start() descriptionSebastian Huber2020-07-211-6/+30
|
* score: Move thread stack allocationSebastian Huber2020-02-121-2/+7
| | | | | | Move thread stack allocation to caller side of _Thread_Initialize(). Update #3835.
* score: Add Thread_ConfigurationSebastian Huber2020-02-121-23/+60
| | | | | | | | | Add the Thread_Configuration structure to reduce the parameter count of _Thread_Initialize(). This makes it easier to add more parameters in the future. It simplifies the code generation since most architectures do not have that many registers available for function parameters. Update #3835.
* score: Simplify thread stack freeSebastian Huber2020-02-121-11/+0
| | | | Update #3835.
* score: Simplify thread stack allocationSebastian Huber2020-02-121-17/+0
| | | | | | Remove superfluous Thread_Control::Start::stack member. Update #3835.
* mpci: Fix blocking proxy statusSebastian Huber2020-01-021-23/+0
| | | | | Remove THREAD_STATUS_PROXY_BLOCKING and replace it with STATUS_PROXY_BLOCKING.
* score: Add and use _Thread_Get_unmapped_priority().Sebastian Huber2019-06-281-0/+28
| | | | Add and use _Thread_Get_unmapped_real_priority().
* doxygen: score: adjust doc in threadimpl.h to doxygen guidelinesAndreas Dachsberger2019-05-131-126/+690
| | | | Update #3706.
* score: Use an ISR lock for Per_CPU_Control::LockSebastian Huber2019-04-121-2/+4
| | | | | | The use of a hand crafted lock for Per_CPU_Control::Lock was necessary at some point in the SMP support development, but it is no longer justified.
* doxygen: Rename Score* groups in RTEMSScore*Sebastian Huber2019-04-041-1/+1
| | | | Update #3706
* score: Static Objects_Information initializationSebastian Huber2018-12-141-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.
* score: Avoid sbintime_t in API headersSebastian Huber2018-12-071-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.
* score: Remove bogus thread object name supportSebastian Huber2018-10-291-3/+1
| | | | Update #2514.
* score: Add thread pin/unpin supportSebastian Huber2018-09-101-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.
* score: Remove redundant #ifdef RTEMS_SMPSebastian Huber2018-08-291-2/+0
|
* score: Avoid structurally dead codeSebastian Huber2018-07-161-3/+2
| | | | This was spotted by Coverity Scan.
* score: Introduce new monotonic clockSebastian Huber2018-02-021-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.
* Remove make preinstallChris Johns2018-01-251-0/+1969
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.