summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-19 15:07:39 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-21 07:29:40 +0200
commit3d0c4005589c15e3ed5688129c62c97c272fbc83 (patch)
treeb978cb6bdaa233fb03cf78b99674b66e76b7e654
parentscore: Rename _MRSP_Obtain() (diff)
downloadrtems-3d0c4005589c15e3ed5688129c62c97c272fbc83.tar.bz2
score: Rename _CORE_barrier_Wait()
Rename _CORE_barrier_Wait() into _CORE_barrier_Seize(). Rename _CORE_barrier_Release() into _CORE_barrier_Surrender(). This avoids confusion with the ISR lock acquire and release.
-rw-r--r--cpukit/posix/src/pbarrierwait.c2
-rw-r--r--cpukit/rtems/src/barrierrelease.c2
-rw-r--r--cpukit/rtems/src/barrierwait.c2
-rw-r--r--cpukit/score/include/rtems/score/corebarrierimpl.h20
-rw-r--r--cpukit/score/src/corebarrierrelease.c2
-rw-r--r--cpukit/score/src/corebarrierwait.c4
6 files changed, 16 insertions, 16 deletions
diff --git a/cpukit/posix/src/pbarrierwait.c b/cpukit/posix/src/pbarrierwait.c
index fd94e4521e..86bfba7b09 100644
--- a/cpukit/posix/src/pbarrierwait.c
+++ b/cpukit/posix/src/pbarrierwait.c
@@ -52,7 +52,7 @@ int pthread_barrier_wait(
case OBJECTS_LOCAL:
executing = _Thread_Executing;
- _CORE_barrier_Wait(
+ _CORE_barrier_Seize(
&the_barrier->Barrier,
executing,
true,
diff --git a/cpukit/rtems/src/barrierrelease.c b/cpukit/rtems/src/barrierrelease.c
index 02500e5a84..77937b3c40 100644
--- a/cpukit/rtems/src/barrierrelease.c
+++ b/cpukit/rtems/src/barrierrelease.c
@@ -54,7 +54,7 @@ rtems_status_code rtems_barrier_release(
switch ( location ) {
case OBJECTS_LOCAL:
- *released = _CORE_barrier_Release( &the_barrier->Barrier, NULL, 0 );
+ *released = _CORE_barrier_Surrender( &the_barrier->Barrier, NULL, 0 );
_Objects_Put( &the_barrier->Object );
return RTEMS_SUCCESSFUL;
diff --git a/cpukit/rtems/src/barrierwait.c b/cpukit/rtems/src/barrierwait.c
index b2999eb5f9..f8f9ac3809 100644
--- a/cpukit/rtems/src/barrierwait.c
+++ b/cpukit/rtems/src/barrierwait.c
@@ -40,7 +40,7 @@ rtems_status_code rtems_barrier_wait(
case OBJECTS_LOCAL:
executing = _Thread_Executing;
- _CORE_barrier_Wait(
+ _CORE_barrier_Seize(
&the_barrier->Barrier,
executing,
true,
diff --git a/cpukit/score/include/rtems/score/corebarrierimpl.h b/cpukit/score/include/rtems/score/corebarrierimpl.h
index 03abecf4e3..454c2c9801 100644
--- a/cpukit/score/include/rtems/score/corebarrierimpl.h
+++ b/cpukit/score/include/rtems/score/corebarrierimpl.h
@@ -84,7 +84,7 @@ RTEMS_INLINE_ROUTINE void _CORE_barrier_Destroy(
_Thread_queue_Destroy( &the_barrier->Wait_queue );
}
-void _CORE_barrier_Do_wait(
+void _CORE_barrier_Do_seize(
CORE_barrier_Control *the_barrier,
Thread_Control *executing,
bool wait,
@@ -116,7 +116,7 @@ void _CORE_barrier_Do_wait(
* @note Status is returned via the thread control block.
*/
#if defined(RTEMS_MULTIPROCESSING)
- #define _CORE_barrier_Wait( \
+ #define _CORE_barrier_Seize( \
the_barrier, \
executing, \
wait, \
@@ -124,7 +124,7 @@ void _CORE_barrier_Do_wait(
mp_callout, \
mp_id \
) \
- _CORE_barrier_Do_wait( \
+ _CORE_barrier_Do_seize( \
the_barrier, \
executing, \
wait, \
@@ -133,7 +133,7 @@ void _CORE_barrier_Do_wait(
mp_id \
)
#else
- #define _CORE_barrier_Wait( \
+ #define _CORE_barrier_Seize( \
the_barrier, \
executing, \
wait, \
@@ -141,7 +141,7 @@ void _CORE_barrier_Do_wait(
mp_callout, \
mp_id \
) \
- _CORE_barrier_Do_wait( \
+ _CORE_barrier_Do_seize( \
the_barrier, \
executing, \
wait, \
@@ -149,7 +149,7 @@ void _CORE_barrier_Do_wait(
)
#endif
-uint32_t _CORE_barrier_Do_release(
+uint32_t _CORE_barrier_Do_surrender(
CORE_barrier_Control *the_barrier
#if defined(RTEMS_MULTIPROCESSING)
,
@@ -172,23 +172,23 @@ uint32_t _CORE_barrier_Do_release(
* @retval the number of unblocked threads
*/
#if defined(RTEMS_MULTIPROCESSING)
- #define _CORE_barrier_Release( \
+ #define _CORE_barrier_Surrender( \
the_barrier, \
mp_callout, \
mp_id \
) \
- _CORE_barrier_Do_release( \
+ _CORE_barrier_Do_surrender( \
the_barrier, \
mp_callout, \
mp_id \
)
#else
- #define _CORE_barrier_Release( \
+ #define _CORE_barrier_Surrender( \
the_barrier, \
mp_callout, \
mp_id \
) \
- _CORE_barrier_Do_release( \
+ _CORE_barrier_Do_surrender( \
the_barrier \
)
#endif
diff --git a/cpukit/score/src/corebarrierrelease.c b/cpukit/score/src/corebarrierrelease.c
index 44580647bd..6d72203e7e 100644
--- a/cpukit/score/src/corebarrierrelease.c
+++ b/cpukit/score/src/corebarrierrelease.c
@@ -23,7 +23,7 @@
#include <rtems/score/objectimpl.h>
#include <rtems/score/threadqimpl.h>
-uint32_t _CORE_barrier_Do_release(
+uint32_t _CORE_barrier_Do_surrender(
CORE_barrier_Control *the_barrier
#if defined(RTEMS_MULTIPROCESSING)
,
diff --git a/cpukit/score/src/corebarrierwait.c b/cpukit/score/src/corebarrierwait.c
index 689ead0331..11495e5e69 100644
--- a/cpukit/score/src/corebarrierwait.c
+++ b/cpukit/score/src/corebarrierwait.c
@@ -23,7 +23,7 @@
#include <rtems/score/statesimpl.h>
#include <rtems/score/threadqimpl.h>
-void _CORE_barrier_Do_wait(
+void _CORE_barrier_Do_seize(
CORE_barrier_Control *the_barrier,
Thread_Control *executing,
bool wait,
@@ -45,7 +45,7 @@ void _CORE_barrier_Do_wait(
the_barrier->Attributes.maximum_count) {
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
_Thread_queue_Release( &the_barrier->Wait_queue, &lock_context );
- _CORE_barrier_Release( the_barrier, mp_callout, mp_id );
+ _CORE_barrier_Surrender( the_barrier, mp_callout, mp_id );
return;
}
}