From 271690eb8838f2af30593584a87cb7595bdbdc6b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 11 Oct 2016 14:42:55 +0200 Subject: score: Enhance _SMP_barrier_Wait() Indicate which processor released the barrier. Similar to pthread_barrier_wait(). --- cpukit/score/include/rtems/score/smpbarrier.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/score/include/rtems/score/smpbarrier.h') diff --git a/cpukit/score/include/rtems/score/smpbarrier.h b/cpukit/score/include/rtems/score/smpbarrier.h index 8225450b09..fddf7bb1cd 100644 --- a/cpukit/score/include/rtems/score/smpbarrier.h +++ b/cpukit/score/include/rtems/score/smpbarrier.h @@ -106,8 +106,11 @@ static inline void _SMP_barrier_State_initialize( * @param[in, out] control The SMP barrier control. * @param[in, out] state The SMP barrier per-thread state. * @param[in] count The thread count bound to rendezvous. + * + * @retval true This processor performed the barrier release. + * @retval false Otherwise. */ -void _SMP_barrier_Wait( +bool _SMP_barrier_Wait( SMP_barrier_Control *control, SMP_barrier_State *state, unsigned int count -- cgit v1.2.3