#1860 closed defect (fixed)

posix timing tests: psxtmbarrier02

Reported by: el.mastin2 Owned by: Jennifer Averett
Priority: normal Milestone: 4.11
Component: test Version: 4.11
Severity: normal Keywords:
Cc: joel.sherrill@… Blocked By:
Blocking:

Description

Contains these barrier tests:

+ pthread_barrier_wait – blocking

The output (--target=sparc-rtems4.11 --enable-rtemsbsp=sis) is:

* POSIX TIME PSXTMBARRIER 02 *
pthread_barrier_wait – blocking 218
* END OF POSIX TIME PSXTMBARRIER 02 *

Attachments (1)

psxtmbarrier02.tar (50.0 KB) - added by el.mastin2 on 07/28/11 at 21:45:31.
posix timing barrier tests: wait – blocking

Download all attachments as: .zip

Change History (6)

Changed on 07/28/11 at 21:45:31 by el.mastin2

Attachment: psxtmbarrier02.tar added

posix timing barrier tests: wait – blocking

comment:1 Changed on 07/28/11 at 21:45:46 by el.mastin2

Owner: changed from Joel Sherrill to Jennifer Averett

comment:2 Changed on 07/29/11 at 14:08:25 by Joel Sherrill

Resolution: fixed
Status: newclosed, joel.sherrill@oarcorp.com

You accidentally left out the sched_yield() in the POSIX_Init() thread. The time you had included the start up of each thread including the sched_yield() call which did a context switch.

A barrier is similar to a mutex or semaphore so the times should be close for similar operations.

sem_wait - not available, block 685
pthread_barrier_wait – blocking 669

Committing with my changes. Thanks.

comment:3 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

comment:4 Changed on 10/10/17 at 06:46:55 by Sebastian Huber

Component: testingunspecified

comment:5 Changed on 02/23/24 at 00:33:31 by Chris Johns

Component: unspecifiedtest
Note: See TracTickets for help on using tickets.