summaryrefslogtreecommitdiffstats
path: root/cpukit/posix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* posix: Make _POSIX_signals_Check_signal() staticSebastian Huber2016-04-064-123/+75
|
* posix: Use proper lock for signalsSebastian Huber2016-04-061-2/+10
|
* score: Rework MP thread queue callout supportSebastian Huber2016-04-067-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The thread queue implementation was heavily reworked to support SMP. This broke the multiprocessing support of the thread queues. This is fixed by this patch. A thread proxy is unblocked due to three reasons 1) timeout, 2) request satisfaction, and 3) extraction. In case 1) no MPCI message must be sent. This is ensured via the _Thread_queue_MP_callout_do_nothing() callout set during _Thread_MP_Allocate_proxy(). In case 2) and 3) an MPCI message must be sent. In case we interrupt the blocking operation during _Thread_queue_Enqueue_critical(), then this message must be sent by the blocking thread. For this the new fields Thread_Proxy_control::thread_queue_callout and Thread_Proxy_control::thread_queue_id are used. Delete the individual API MP callout types and use Thread_queue_MP_callout throughout. This type is only defined in multiprocessing configurations. Prefix the multiprocessing parameters with mp_ to ease code review. Multiprocessing specific parameters are optional due to use of a similar macro pattern. There is no overhead for non-multiprocessing configurations.
* score: _Thread_queue_Flush() parameter changesSebastian Huber2016-04-063-10/+5
| | | | | | | | | | | | Change _Thread_queue_Flush() into a macro that invokes _Thread_queue_Do_flush() with the parameter set defined by RTEMS_MULTIPROCESSING. For multiprocessing configurations add the object identifier to avoid direct use of the thread wait information. Use mp_ prefix for multiprocessing related parameters. Rename Thread_queue_Flush_callout to Thread_queue_MP_callout since this type will be re-used later for other operations as well.
* score: Delete MP support for RW locksSebastian Huber2016-04-066-18/+6
| | | | MP support was not implemented.
* score: Delete Thread_Wait_information::idSebastian Huber2016-04-0610-7/+31
| | | | | | | | | | | This field was only by the monitor in non-multiprocessing configurations. Add new field Thread_Wait_information::remote_id in multiprocessing configurations and use it for the remote procedure call thread queue. Add _Thread_Wait_get_id() to obtain the object identifier for debug and system information tools. Ensure the object layout via static asserts. Add test cases to sptests/spthreadq01.
* score: Add and use _RBTree_Insert_inline()Sebastian Huber2016-04-011-22/+4
|
* score: Add and use _RBTree_Find_inline()Sebastian Huber2016-04-011-22/+32
|
* score: Use constant for maximum count of CORE semaSebastian Huber2016-03-291-1/+0
|
* score: Remove Thread_queue_Queue::operations fieldSebastian Huber2016-03-2916-41/+55
| | | | | | | | | Remove the Thread_queue_Queue::operations field to reduce the size of this structure. Add a thread queue operations parameter to the _Thread_queue_First(), _Thread_queue_First_locked(), _Thread_queue_Enqueue(), _Thread_queue_Dequeue() and _Thread_queue_Flush() functions. This is a preparation patch to reduce the size of several synchronization objects.
* posix: pthread_exit() is a no-return functionSebastian Huber2016-03-231-0/+1
|
* score: Avoid Giant lock for CORE spinlockSebastian Huber2016-03-186-175/+69
| | | | | | Use an ISR lock to protect the spinlock state. Remove empty attributes. Update #2555.
* score: Add _Objects_Get_by_name()Sebastian Huber2016-03-188-146/+69
| | | | | | | | | | Replace _Objects_Name_to_id_string() with _Objects_Get_by_name() since all users of this function are interested in the object itself and not the identifier. Use the object allocator lock to protect the search. Update #2555.
* posix: Use per-thread lookup tree for POSIX KeysSebastian Huber2016-03-189-382/+295
| | | | | | Yields higher performance on SMP systems. Close #2625.
* posix: Avoid Giant lock in sched_yield()Sebastian Huber2016-03-171-3/+5
| | | | Update #2555.
* score: Add and use _Objects_Get_local()Sebastian Huber2016-03-145-108/+73
| | | | | | This simplifies the handling with local-only objects. Update #2555.
* score: Replace watchdog handler implementationSebastian Huber2016-03-0417-375/+354
| | | | | | | | | Use a red-black tree instead of delta chains. Close #2344. Update #2554. Update #2555. Close #2606.
* Delete unused API extensionsSebastian Huber2016-02-033-3/+0
|
* Use linker set for POSIX User Threads initSebastian Huber2016-02-032-33/+0
| | | | Update #2408.
* posix: Delete empty _POSIX_API_Initialize()Sebastian Huber2016-02-031-8/+0
|
* Optional POSIX Keys initializationSebastian Huber2016-02-034-111/+71
| | | | Update #2408.
* Optional POSIX Spinlock initializationSebastian Huber2016-02-032-10/+11
| | | | Update #2408.
* Optional POSIX RWLock initializationSebastian Huber2016-02-032-10/+11
| | | | Update #2408.
* Optional POSIX Barrier initializationSebastian Huber2016-02-032-10/+11
| | | | Update #2408.
* Optional POSIX Timer initializationSebastian Huber2016-02-033-16/+11
| | | | Update #2408.
* Optional POSIX Semaphore initializationSebastian Huber2016-02-032-9/+11
| | | | Update #2408.
* Optional POSIX Message Queue initializationSebastian Huber2016-02-032-22/+14
| | | | Update #2408.
* Optional POSIX Mutex initializationSebastian Huber2016-02-032-10/+14
| | | | Update #2408.
* Optional POSIX Condition Variable initializationSebastian Huber2016-02-032-9/+11
| | | | Update #2408.
* Optional POSIX Cleanup initializationSebastian Huber2016-02-037-136/+74
| | | | Update #2408.
* Optional POSIX Threads initializationSebastian Huber2016-02-033-19/+13
| | | | Update #2408.
* Optional POSIX Signals initializationSebastian Huber2016-02-032-6/+8
| | | | Update #2408.
* posix/src/exec*: Remove all variants already in NewlibJoel Sherrill2016-01-198-220/+7
| | | | | | | | The RTEMS build of Newlib includes implementations of all exec*() variants. They rely on the _execve() support method. RTEMS already had this and it returned ENOSYS. There is no functional change. closes #2537.
* posix: Remove clock_getenable_attr() and clock_setenable_attr()Joel Sherrill2016-01-183-82/+1
| | | | | | | | | These were not implemented and it does not appear that they were ever officially part of an approved POSIX standard. They were likely part of the Draft 8 of POSIX 1003.1b that RTEMS pthreads were initially based upon. closes #2531.
* score: Simplify _Thread_Start()Sebastian Huber2016-01-111-1/+1
|
* score: Introduce Thread_Entry_informationSebastian Huber2016-01-112-10/+15
| | | | | | | This avoids potential dead code in _Thread_Handler(). It gets rid of the dangerous function pointer casts. Update #2514.
* score: Avoid dead code in global constructionSebastian Huber2016-01-081-1/+10
| | | | Update #2514.
* score: Add fatal errors for NULL entry init tasksSebastian Huber2016-01-081-1/+8
| | | | | | This simplifies the global construction. Update #2514.
* posix: Store unblocked signalsSebastian Huber2015-12-158-26/+24
| | | | | Store the unblock signals to exploit the zero-initialization of the thread control block.
* score: Initialize thread control to zeroSebastian Huber2015-12-151-7/+3
| | | | This reduces the code size of the thread initialization.
* score: Untangle thread actionsSebastian Huber2015-12-112-6/+6
| | | | | | | Remove the thread action handler parameter from _Thread_Action_initialize() and instead set it later in _Thread_Add_post_switch_action(). This avoids a dependency on the thread action handler via the thread initialization.
* posix: Require struct _pthread_cleanup_contextSebastian Huber2015-11-246-174/+0
| | | | | This structure is available in Newlib since 2013-11-29 (Git commit a534dfd26e765047621acd0eda656ded886e7108).
* basdefs.h: Add and use RTEMS_UNUSEDSebastian Huber2015-10-2618-41/+59
|
* various .h files: Add missing C++ extern wrappersMartin Galvan2015-09-031-1/+4
| | | | Updates #2405.
* posix: glibc compatibilitySebastian Huber2015-09-022-8/+6
|
* posix: Avoid _RBTree_Next()Sebastian Huber2015-08-311-3/+3
|
* score: Rename _POSIX_Absolute_timeout_to_ticks()Sebastian Huber2015-07-2895-308/+55
| | | | | | Rename _POSIX_Absolute_timeout_to_ticks() to _TOD_Absolute_timeout_to_ticks() and move it to the score directory. Delete empty <rtems/posix/time.h>.
* score: Introduce Thread_queue_HeadsSebastian Huber2015-07-233-29/+30
| | | | | | | | | | | | | Move the storage for the thread queue heads to the threads. Each thread provides a set of thread queue heads allocated from a dedicated memory pool. In case a thread blocks on a queue, then it lends its heads to the queue. In case the thread unblocks, then it takes a free set of threads from the queue. Since a thread can block on at most one queue this works. This mechanism is used in FreeBSD. The motivation for this change is to reduce the memory demands of the synchronization objects. On a 32-bit uni-processor configuration the Thread_queue_Control size is now 8 bytes, compared to 64 bytes in RTEMS 4.10 (other changes reduced the size as well).
* score: Introduce Thread_queue_QueueSebastian Huber2015-07-232-2/+3
| | | | | | Separate the thread queue heads and lock from the operations. This enables the support for light weight objects which only support one queuing discipline.
* score: Freechain handler API changesSebastian Huber2015-07-012-44/+15
| | | | | Replace the extend function with an allocator since this fits better to the current use case.