summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 15:10:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 16:17:00 +0200
commite266d134ebf6f7b7722fffe23c3b4ad142001452 (patch)
tree7e43e93706be3da460331353b87e58cbb6a9833c /cpukit/posix/src
parentscore: Rename _Objects_Get_local() (diff)
downloadrtems-e266d134ebf6f7b7722fffe23c3b4ad142001452.tar.bz2
Replace *_Get_interrupt_disable() with *_Get()
Uniformly use *_Get() to get an object by identifier with a lock context.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r--cpukit/posix/src/cancel.c2
-rw-r--r--cpukit/posix/src/mutexdestroy.c2
-rw-r--r--cpukit/posix/src/mutexget.c2
-rw-r--r--cpukit/posix/src/mutexgetprioceiling.c2
-rw-r--r--cpukit/posix/src/mutexlocksupp.c2
-rw-r--r--cpukit/posix/src/mutexsetprioceiling.c2
-rw-r--r--cpukit/posix/src/mutexunlock.c2
-rw-r--r--cpukit/posix/src/pthreaddetach.c2
-rw-r--r--cpukit/posix/src/pthreadequal.c4
-rw-r--r--cpukit/posix/src/pthreadgetaffinitynp.c2
-rw-r--r--cpukit/posix/src/pthreadgetattrnp.c2
-rw-r--r--cpukit/posix/src/pthreadgetschedparam.c2
-rw-r--r--cpukit/posix/src/pthreadjoin.c2
-rw-r--r--cpukit/posix/src/pthreadkill.c2
-rw-r--r--cpukit/posix/src/pthreadsetaffinitynp.c2
-rw-r--r--cpukit/posix/src/pthreadsetschedparam.c2
16 files changed, 17 insertions, 17 deletions
diff --git a/cpukit/posix/src/cancel.c b/cpukit/posix/src/cancel.c
index 9519c45e52..04088ae201 100644
--- a/cpukit/posix/src/cancel.c
+++ b/cpukit/posix/src/cancel.c
@@ -45,7 +45,7 @@ int pthread_cancel( pthread_t thread )
return EPROTO;
}
- the_thread = _Thread_Get_interrupt_disable( thread, &lock_context );
+ the_thread = _Thread_Get( thread, &lock_context );
if ( the_thread == NULL ) {
return ESRCH;
diff --git a/cpukit/posix/src/mutexdestroy.c b/cpukit/posix/src/mutexdestroy.c
index bebb306027..640acc0e5a 100644
--- a/cpukit/posix/src/mutexdestroy.c
+++ b/cpukit/posix/src/mutexdestroy.c
@@ -34,7 +34,7 @@ int pthread_mutex_destroy(
_Objects_Allocator_lock();
- the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &lock_context );
+ the_mutex = _POSIX_Mutex_Get( mutex, &lock_context );
if ( the_mutex != NULL ) {
_CORE_mutex_Acquire_critical( &the_mutex->Mutex, &lock_context );
diff --git a/cpukit/posix/src/mutexget.c b/cpukit/posix/src/mutexget.c
index 97d6dff658..f8f003353a 100644
--- a/cpukit/posix/src/mutexget.c
+++ b/cpukit/posix/src/mutexget.c
@@ -21,7 +21,7 @@
#include <rtems/posix/muteximpl.h>
#include <rtems/posix/posixapi.h>
-POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable(
+POSIX_Mutex_Control *_POSIX_Mutex_Get(
pthread_mutex_t *mutex,
ISR_lock_Context *lock_context
)
diff --git a/cpukit/posix/src/mutexgetprioceiling.c b/cpukit/posix/src/mutexgetprioceiling.c
index e66e98366e..232b2e2a80 100644
--- a/cpukit/posix/src/mutexgetprioceiling.c
+++ b/cpukit/posix/src/mutexgetprioceiling.c
@@ -37,7 +37,7 @@ int pthread_mutex_getprioceiling(
return EINVAL;
}
- the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &lock_context );
+ the_mutex = _POSIX_Mutex_Get( mutex, &lock_context );
if ( the_mutex == NULL ) {
return EINVAL;
diff --git a/cpukit/posix/src/mutexlocksupp.c b/cpukit/posix/src/mutexlocksupp.c
index 3c4e26e04a..5c708579f6 100644
--- a/cpukit/posix/src/mutexlocksupp.c
+++ b/cpukit/posix/src/mutexlocksupp.c
@@ -32,7 +32,7 @@ int _POSIX_Mutex_Lock_support(
ISR_lock_Context lock_context;
Thread_Control *executing;
- the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &lock_context );
+ the_mutex = _POSIX_Mutex_Get( mutex, &lock_context );
if ( the_mutex == NULL ) {
return EINVAL;
diff --git a/cpukit/posix/src/mutexsetprioceiling.c b/cpukit/posix/src/mutexsetprioceiling.c
index 5d50f14857..40b970dcb1 100644
--- a/cpukit/posix/src/mutexsetprioceiling.c
+++ b/cpukit/posix/src/mutexsetprioceiling.c
@@ -57,7 +57,7 @@ int pthread_mutex_setprioceiling(
* NOTE: This makes it easier to get 100% binary coverage since the
* bad Id case is handled by the switch.
*/
- the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &lock_context );
+ the_mutex = _POSIX_Mutex_Get( mutex, &lock_context );
if ( the_mutex == NULL ) {
return EINVAL;
diff --git a/cpukit/posix/src/mutexunlock.c b/cpukit/posix/src/mutexunlock.c
index 4de1917648..f9dec821da 100644
--- a/cpukit/posix/src/mutexunlock.c
+++ b/cpukit/posix/src/mutexunlock.c
@@ -34,7 +34,7 @@ int pthread_mutex_unlock(
CORE_mutex_Status status;
ISR_lock_Context lock_context;
- the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &lock_context );
+ the_mutex = _POSIX_Mutex_Get( mutex, &lock_context );
if ( the_mutex == NULL ) {
return EINVAL;
diff --git a/cpukit/posix/src/pthreaddetach.c b/cpukit/posix/src/pthreaddetach.c
index fe2a590252..ee69a9a718 100644
--- a/cpukit/posix/src/pthreaddetach.c
+++ b/cpukit/posix/src/pthreaddetach.c
@@ -34,7 +34,7 @@ int pthread_detach( pthread_t thread )
ISR_lock_Context lock_context;
Per_CPU_Control *cpu_self;
- the_thread = _Thread_Get_interrupt_disable( thread, &lock_context );
+ the_thread = _Thread_Get( thread, &lock_context );
if ( the_thread == NULL ) {
return ESRCH;
diff --git a/cpukit/posix/src/pthreadequal.c b/cpukit/posix/src/pthreadequal.c
index 4ee5040c14..54b15d2e55 100644
--- a/cpukit/posix/src/pthreadequal.c
+++ b/cpukit/posix/src/pthreadequal.c
@@ -45,8 +45,8 @@ int pthread_equal(
Thread_Control *thread_1;
Thread_Control *thread_2;
- thread_1 = _Thread_Get_interrupt_disable( t1, &lock_context_1 );
- thread_2 = _Thread_Get_interrupt_disable( t2, &lock_context_2 );
+ thread_1 = _Thread_Get( t1, &lock_context_1 );
+ thread_2 = _Thread_Get( t2, &lock_context_2 );
_ISR_lock_ISR_enable( &lock_context_2 );
_ISR_lock_ISR_enable( &lock_context_1 );
diff --git a/cpukit/posix/src/pthreadgetaffinitynp.c b/cpukit/posix/src/pthreadgetaffinitynp.c
index 7e0c32e03c..b843f931d4 100644
--- a/cpukit/posix/src/pthreadgetaffinitynp.c
+++ b/cpukit/posix/src/pthreadgetaffinitynp.c
@@ -45,7 +45,7 @@ int pthread_getaffinity_np(
return EFAULT;
}
- the_thread = _Thread_Get_interrupt_disable( thread, &lock_context );
+ the_thread = _Thread_Get( thread, &lock_context );
if ( the_thread == NULL ) {
return ESRCH;
diff --git a/cpukit/posix/src/pthreadgetattrnp.c b/cpukit/posix/src/pthreadgetattrnp.c
index 30cee97f06..63de97be4b 100644
--- a/cpukit/posix/src/pthreadgetattrnp.c
+++ b/cpukit/posix/src/pthreadgetattrnp.c
@@ -38,7 +38,7 @@ int pthread_getattr_np(
return EINVAL;
}
- the_thread = _Thread_Get_interrupt_disable( thread, &lock_context );
+ the_thread = _Thread_Get( thread, &lock_context );
if ( the_thread == NULL ) {
return ESRCH;
diff --git a/cpukit/posix/src/pthreadgetschedparam.c b/cpukit/posix/src/pthreadgetschedparam.c
index d769d8a520..21908cb2e3 100644
--- a/cpukit/posix/src/pthreadgetschedparam.c
+++ b/cpukit/posix/src/pthreadgetschedparam.c
@@ -42,7 +42,7 @@ int pthread_getschedparam(
return EINVAL;
}
- the_thread = _Thread_Get_interrupt_disable( thread, &lock_context );
+ the_thread = _Thread_Get( thread, &lock_context );
if ( the_thread == NULL ) {
return ESRCH;
diff --git a/cpukit/posix/src/pthreadjoin.c b/cpukit/posix/src/pthreadjoin.c
index 8950be263e..db83a1f3bf 100644
--- a/cpukit/posix/src/pthreadjoin.c
+++ b/cpukit/posix/src/pthreadjoin.c
@@ -37,7 +37,7 @@ static int _POSIX_Threads_Join( pthread_t thread, void **value_ptr )
Thread_Control *executing;
void *value;
- the_thread = _Thread_Get_interrupt_disable( thread, &lock_context );
+ the_thread = _Thread_Get( thread, &lock_context );
if ( the_thread == NULL ) {
return ESRCH;
diff --git a/cpukit/posix/src/pthreadkill.c b/cpukit/posix/src/pthreadkill.c
index eb027461cb..1da8fb6ca1 100644
--- a/cpukit/posix/src/pthreadkill.c
+++ b/cpukit/posix/src/pthreadkill.c
@@ -39,7 +39,7 @@ int pthread_kill( pthread_t thread, int sig )
return EINVAL;
}
- the_thread = _Thread_Get_interrupt_disable( thread, &lock_context );
+ the_thread = _Thread_Get( thread, &lock_context );
if ( the_thread == NULL ) {
return ESRCH;
diff --git a/cpukit/posix/src/pthreadsetaffinitynp.c b/cpukit/posix/src/pthreadsetaffinitynp.c
index 6dd8bce224..7959df4505 100644
--- a/cpukit/posix/src/pthreadsetaffinitynp.c
+++ b/cpukit/posix/src/pthreadsetaffinitynp.c
@@ -45,7 +45,7 @@ int pthread_setaffinity_np(
return EFAULT;
}
- the_thread = _Thread_Get_interrupt_disable( thread, &lock_context );
+ the_thread = _Thread_Get( thread, &lock_context );
if ( the_thread == NULL ) {
return ESRCH;
diff --git a/cpukit/posix/src/pthreadsetschedparam.c b/cpukit/posix/src/pthreadsetschedparam.c
index 8f3cc206e1..af8c8823ec 100644
--- a/cpukit/posix/src/pthreadsetschedparam.c
+++ b/cpukit/posix/src/pthreadsetschedparam.c
@@ -65,7 +65,7 @@ int pthread_setschedparam(
return eno;
}
- the_thread = _Thread_Get_interrupt_disable( thread, &lock_context );
+ the_thread = _Thread_Get( thread, &lock_context );
if ( the_thread == NULL ) {
return ESRCH;