summaryrefslogtreecommitdiffstats
path: root/cpukit/posix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* posix: Add pthread_attr_t methods to get/set affinity.Jennifer Averett2014-03-073-0/+108
| | | | | | | This patch adds the following methods: + pthread_attr_get_affinity_np + pthread_attr_set_affinity_np
* posix: Add support method to compare two pthread attribute structures.Jennifer Averett2014-03-072-0/+95
|
* posix: Add POSIX thread affinity attribute support.Jennifer Averett2014-03-074-16/+129
| | | | | With the addition of pthread affinity information in pthread_attr_t, the existing code for pthread_attr_t had to be adjusted.
* posix: Set pthread attribute values in detach and setschedparm methods.Jennifer Averett2014-02-192-0/+4
|
* posix/*.c: Remove use of register keywordJoel Sherrill2014-02-0313-26/+26
|
* posix: fix race condition between pthread_create and capture engineTill Strauman2014-01-091-0/+5
| | | | | | Reproducable crashes occur when using pthreads and the capture engine at the same time. 'pthread_create()' is the culprit. It creates a SCORE thread and then calls Thread_Start( ) without disabling thread-dispatching.
* alarm.c: Use _Assert() not assert()Joel Sherrill2013-12-101-1/+1
|
* alarm.c: Per comment add debug code for kill() failingJoel Sherrill2013-12-091-4/+17
| | | | | This is highly unlikely and would indicate a serious bug in the system or corruption. But it is better to be cautious.
* pthread.c: Use UINT32_MAX rather than constant valueJoel Sherrill2013-12-091-1/+1
|
* condwaitsupp.c: Return EPERM if waiting and mutex is not lockedJoel Sherrill2013-12-091-4/+8
| | | | | | This error check was commented out because it is not in the POSIX specification. However, the GNU/Linux manual page does document that EPERM is to be returned in this situation.
* psignalimpl.h: Remove dead commentJoel Sherrill2013-12-091-3/+1
|
* pthread.c: Remove XXX and use SIGNAL_ constantsJoel Sherrill2013-12-091-5/+3
|
* posix/config.h: Comment clean upJoel Sherrill2013-12-091-10/+102
|
* signalcatch.c: Remove junk commentJoel Sherrill2013-12-091-1/+1
|
* timerimpl.h: Comment clean upJoel Sherrill2013-12-091-36/+22
|
* semaphoreimpl.h: Comment clean upJoel Sherrill2013-12-091-79/+38
|
* mqueueimpl.h: Comment clean upJoel Sherrill2013-12-091-176/+91
|
* condimpl.h: Comment clean upJoel Sherrill2013-12-091-98/+35
|
* ptimer.h: Comment clean upJoel Sherrill2013-12-091-31/+14
|
* muteximpl.h: Comment clean upJoel Sherrill2013-12-091-108/+44
|
* pspin.c: Comment clean upJoel Sherrill2013-12-091-16/+7
|
* pbarrier.c: Comment clean upJoel Sherrill2013-12-091-16/+7
|
* cpukit/rtems: Remove XXX in commentsJoel Sherrill2013-12-091-2/+2
|
* posix: Use cleanup contexts on the stackSebastian Huber2013-12-026-13/+110
| | | | | | | | | | Provide support for latest Newlib <pthread.h> change. The cleanup contexts are stored on the thread stack. This is conformant with the POSIX requirements for the pthread_cleanup_push() and pthread_cleanup_pop() statement pair. Passing an invalid pointer as the routine to pthread_cleanup_push() is now a usage error and the behaviour is undefined.
* POSIX timers: Add restrict keywordSahil Patnayakuni2013-11-292-4/+4
| | | | | + timer_create() + timer_settime()
* signal methods: Add restrict keywordBryan Dunsmore2013-11-296-13/+13
|
* score/rbtree: Remove "unprotected" from APISebastian Huber2013-11-214-8/+8
|
* Fix building with RTEMS_DEBUG.Chris Johns2013-09-301-3/+17
|
* _execve.c: Fix missing prototype warningsJoel Sherrill2013-09-221-1/+7
|
* semopen.c: Switch to using RTEMS_COMPILER_UNUSED_ATTRIBUTEJoel Sherrill2013-09-221-11/+8
|
* mqueueopen.c: Switch to using RTEMS_COMPILER_UNUSED_ATTRIBUTEJoel Sherrill2013-09-221-11/+8
|
* semopen.c: Address set but unused variable warningJoel Sherrill2013-09-211-0/+9
|
* sigsuspend.c: Address set but unused variable warningJoel Sherrill2013-09-211-3/+6
|
* mqueueopen.c: Address set but unused variable warningJoel Sherrill2013-09-211-0/+10
|
* sapi: SMP support for chainsSebastian Huber2013-08-302-21/+29
| | | | | | | | Add ISR lock to chain control for proper SMP protection. Replace rtems_chain_extract() with rtems_chain_explicit_extract() and rtems_chain_insert() with rtems_chain_explicit_insert() on SMP configurations. Use rtems_chain_explicit_extract() and rtems_chain_explicit_insert() to provide SMP support.
* posix: Avoid NULL pointer accessSebastian Huber2013-08-281-3/+5
|
* posix: Add and use _POSIX_signals_Acquire()Sebastian Huber2013-08-276-16/+44
| | | | | | Add and use _POSIX_signals_Release(). The post-switch handler is not protected by disabled thread dispatching. Use proper SMP lock for signal management.
* posix: _POSIX_signals_Clear_process_signals()Sebastian Huber2013-08-271-28/+11
| | | | Do not disable interrupts since the caller did this already.
* posix: Protect access to _POSIX_signals_VectorsSebastian Huber2013-08-271-11/+6
| | | | | Assume the sigaction() is called only from thread context. Protect against concurrent sigaction() invocations by different threads.
* score: _Thread_queue_Enqueue_with_handler()Sebastian Huber2013-08-233-3/+7
| | | | | Add thread parameter to _Thread_queue_Enqueue_with_handler() to avoid access to global _Thread_Executing.
* posix: Update to the pthread_once changes.Chris Johns2013-08-234-26/+44
| | | | | | Implement the reeview changes. Add a POSIX Fatal error domain. Fix confdefs.h to correctly handle the internal POSIX mutexes.
* posix: TypoSebastian Huber2013-08-141-1/+1
|
* posix: Change pthread_once to be SMP safe.Chris Johns2013-08-145-11/+155
| | | | | | | | | | Change pthread_once from using disabled pre-emption to using a pthread mutex making it SMP safe. GCC using a posix threading model uses pthread_once. The pthread mutex requires at least 1 mutex is configured so confdefs.h has been updated to account for the internal mutex.
* posix: Handle recursive attributes correctly.Chris Johns2013-08-141-1/+1
| | | | | | The recursive field in the pthread_mutexattr_t is now not used. The code in pthread_mutexattr_settype only sets the type field and not the recursive field.
* PR766: Delete __RTEMS_INSIDE__Sebastian Huber2013-08-081-2/+0
|
* posix: Delete POSIX_Keys_Freechain typeSebastian Huber2013-08-085-80/+76
| | | | | | Use the POSIX configuration value directly. Use right type early and avoid casts. Use proper unlimited objects API. Check workspace allocation. Make functions static.
* posix: Add missing header.Chris Johns2013-08-081-8/+9
|
* posix: Use _Objects_Put() for POSIX keysSebastian Huber2013-08-063-10/+15
|
* posix: Create key implementation headerSebastian Huber2013-08-0614-252/+219
| | | | | | Move implementation specific parts of key.h and key.inl into new header file keyimpl.h. The key.h contains now only the application visible API.
* Unlimited objects support for POSIX keysZhongwei Yao2013-08-0611-165/+374
| | | | | | | This patch enables unlimited model in POSIX key manger and have a decent runtime on POSIX key searching, adding and deleting operations. Memory overhead is lower than current implementation when the size of key and key value becomes big.