summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/corebarrier.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-21 10:21:26 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-24 09:22:36 +0100
commit3cbdf19eacf45a8e9faad284b71775a9d56872dd (patch)
tree1fe6c02e117ac4a09379da1403724d66fc97a58c /cpukit/score/src/corebarrier.c
parentscore: Remove _Objects_Open() (diff)
downloadrtems-3cbdf19eacf45a8e9faad284b71775a9d56872dd.tar.bz2
score: Simplify core barrier
Use the number of threads which must arrive at the barrier to trip the automatic release also to indicate if the barrier is a manual release barrier.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/corebarrier.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/score/src/corebarrier.c b/cpukit/score/src/corebarrier.c
index c9c9b04ed5..edb37d7087 100644
--- a/cpukit/score/src/corebarrier.c
+++ b/cpukit/score/src/corebarrier.c
@@ -23,13 +23,12 @@
#include <rtems/score/corebarrierimpl.h>
void _CORE_barrier_Initialize(
- CORE_barrier_Control *the_barrier,
- CORE_barrier_Attributes *the_barrier_attributes
+ CORE_barrier_Control *the_barrier,
+ uint32_t maximum_count
)
{
-
- the_barrier->Attributes = *the_barrier_attributes;
the_barrier->number_of_waiting_threads = 0;
+ the_barrier->maximum_count = maximum_count;
_Thread_queue_Object_initialize( &the_barrier->Wait_queue );
}