mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-06 20:00:45 +08:00
testing/ostest/barrier: Remove duplicate initialization of the barrier's
attributes. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
025ce0e008
commit
b1fb24d5b9
@ -107,6 +107,8 @@ void barrier_test(void)
|
||||
|
||||
printf("barrier_test: Initializing barrier\n");
|
||||
|
||||
/* Create the barrier */
|
||||
|
||||
status = pthread_barrierattr_init(&barrierattr);
|
||||
if (status != OK)
|
||||
{
|
||||
@ -122,10 +124,6 @@ void barrier_test(void)
|
||||
status);
|
||||
}
|
||||
|
||||
/* Create the barrier */
|
||||
|
||||
pthread_barrierattr_init(&barrierattr);
|
||||
|
||||
/* Start CONFIG_TESTING_OSTEST_NBARRIER_THREADS thread instances */
|
||||
|
||||
status = pthread_attr_init(&attr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user