diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-21 10:21:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-24 09:22:36 +0100 |
commit | 3cbdf19eacf45a8e9faad284b71775a9d56872dd (patch) | |
tree | 1fe6c02e117ac4a09379da1403724d66fc97a58c /cpukit/score/src/corebarrier.c | |
parent | score: Remove _Objects_Open() (diff) | |
download | rtems-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.c | 7 |
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 ); } |