diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-09 22:08:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-09 22:08:31 +0000 |
commit | 4d3200628dc294e793b5a7512141de4c1f09649c (patch) | |
tree | 4e6d12167019f6de6fb1f6cbf330911911db4671 /cpukit/posix/include/rtems | |
parent | 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-4d3200628dc294e793b5a7512141de4c1f09649c.tar.bz2 |
2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/Makefile.am, posix/include/rtems/posix/cond.h,
posix/include/rtems/posix/mutex.h, posix/inline/rtems/posix/cond.inl,
posix/inline/rtems/posix/mutex.inl: Do not include POSIX Mutex or
Condition Variable object get helpers because they are more
complicated than the norm. They can implicitly perform a create. They
cross the line as being too complex and large to inline since they
negatively impact size and binary test coverage.
* posix/src/condget.c, posix/src/mutexget.c: New files.
Diffstat (limited to 'cpukit/posix/include/rtems')
-rw-r--r-- | cpukit/posix/include/rtems/posix/cond.h | 15 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/mutex.h | 37 |
2 files changed, 52 insertions, 0 deletions
diff --git a/cpukit/posix/include/rtems/posix/cond.h b/cpukit/posix/include/rtems/posix/cond.h index a692ad462f..1df16380e5 100644 --- a/cpukit/posix/include/rtems/posix/cond.h +++ b/cpukit/posix/include/rtems/posix/cond.h @@ -158,6 +158,21 @@ int _POSIX_Condition_variables_Wait_support( boolean already_timedout ); +/* + * _POSIX_Condition_variables_Get + * + * DESCRIPTION: + * + * A support routine which translates the condition variable id into + * a local pointer. As a side-effect, it may create the condition + * variable. + */ + +POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get ( + pthread_cond_t *cond, + Objects_Locations *location +); + #include <rtems/posix/cond.inl> #ifdef __cplusplus diff --git a/cpukit/posix/include/rtems/posix/mutex.h b/cpukit/posix/include/rtems/posix/mutex.h index 72551a78fc..a9374a7381 100644 --- a/cpukit/posix/include/rtems/posix/mutex.h +++ b/cpukit/posix/include/rtems/posix/mutex.h @@ -147,6 +147,43 @@ int _POSIX_Mutex_Translate_core_mutex_return_code( ); +/* + * _POSIX_Mutex_Get + * + * DESCRIPTION: + * + * A support routine which translates the mutex id into a local pointer. + * As a side-effect, it may create the mutex. + * + * NOTE: + * + * This version of the method uses a dispatching critical section. + */ + +POSIX_Mutex_Control *_POSIX_Mutex_Get ( + pthread_mutex_t *mutex, + Objects_Locations *location +); + +/* + * _POSIX_Mutex_Get + * + * DESCRIPTION: + * + * A support routine which translates the mutex id into a local pointer. + * As a side-effect, it may create the mutex. + * + * NOTE: + * + * This version of the method uses an interrupt critical section. + */ + +POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable ( + pthread_mutex_t *mutex, + Objects_Locations *location, + ISR_Level *level +); + #include <rtems/posix/mutex.inl> #ifdef __cplusplus |