diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-11 14:42:55 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-11 14:44:47 +0200 |
commit | 271690eb8838f2af30593584a87cb7595bdbdc6b (patch) | |
tree | 990a6fdde8fa37a02ef3aae3951e997a5cda2a62 /cpukit/score/include/rtems/score/smpbarrier.h | |
parent | bsp/qoriq: Add GPIO register map (diff) | |
download | rtems-271690eb8838f2af30593584a87cb7595bdbdc6b.tar.bz2 |
score: Enhance _SMP_barrier_Wait()
Indicate which processor released the barrier. Similar to
pthread_barrier_wait().
Diffstat (limited to 'cpukit/score/include/rtems/score/smpbarrier.h')
-rw-r--r-- | cpukit/score/include/rtems/score/smpbarrier.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |