mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-18 12:08:18 +00:00
testing/smp/smp_main.c: Remove duplicate initialization of the barrier's
attributes. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
e5667b1d3d
commit
eb228229d8
1 changed files with 2 additions and 4 deletions
|
|
@ -221,6 +221,8 @@ int main(int argc, FAR char *argv[])
|
|||
show_cpu(" Main", 0);
|
||||
printf(" Main[0]: Initializing barrier\n");
|
||||
|
||||
/* Create the barrier */
|
||||
|
||||
ret = pthread_barrierattr_init(&barrierattr);
|
||||
if (ret != OK)
|
||||
{
|
||||
|
|
@ -242,10 +244,6 @@ int main(int argc, FAR char *argv[])
|
|||
goto errout_with_attr;
|
||||
}
|
||||
|
||||
/* Create the barrier */
|
||||
|
||||
pthread_barrierattr_init(&barrierattr);
|
||||
|
||||
/* Start CONFIG_TESTING_SMP_NBARRIER_THREADS thread instances */
|
||||
|
||||
ret = pthread_attr_init(&attr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue