You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/07/29 04:13:19 UTC

[incubator-nuttx-apps] branch master updated (e21330d -> b1fb24d)

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git.


    from e21330d  examples: add CORDIC example
     new e5667b1  testing/smp/smp_main.c: Fix the message printed when pthread_barrier_init fails.
     new eb22822  testing/smp/smp_main.c: Remove duplicate initialization of the barrier's attributes.
     new 025ce0e  testing/ostest/barrier: Fix the message printed when pthread_barrier_init fails.
     new b1fb24d  testing/ostest/barrier: Remove duplicate initialization of the barrier's attributes.

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 testing/ostest/barrier.c | 8 +++-----
 testing/smp/smp_main.c   | 8 +++-----
 2 files changed, 6 insertions(+), 10 deletions(-)

[incubator-nuttx-apps] 01/04: testing/smp/smp_main.c: Fix the message printed when pthread_barrier_init fails.

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit e5667b1d3d0d5b75ff0ebbbdf9d765f06ad12628
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Wed Jul 28 16:57:53 2021 +0200

    testing/smp/smp_main.c: Fix the message printed when
    pthread_barrier_init fails.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 testing/smp/smp_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/smp/smp_main.c b/testing/smp/smp_main.c
index 4a524b0..f1ba95b 100644
--- a/testing/smp/smp_main.c
+++ b/testing/smp/smp_main.c
@@ -235,7 +235,7 @@ int main(int argc, FAR char *argv[])
                              CONFIG_TESTING_SMP_NBARRIER_THREADS);
   if (ret != OK)
     {
-      printf("  Main[0]: pthread_barrierattr_init failed, ret=%d\n",
+      printf("  Main[0]: pthread_barrier_init failed, ret=%d\n",
              ret);
 
       errcode = EXIT_FAILURE;

[incubator-nuttx-apps] 03/04: testing/ostest/barrier: Fix the message printed when pthread_barrier_init fails.

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 025ce0e0083fc4252daaa1741f6cc1377fb13bc6
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Wed Jul 28 17:04:28 2021 +0200

    testing/ostest/barrier: Fix the message printed when
    pthread_barrier_init fails.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 testing/ostest/barrier.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/ostest/barrier.c b/testing/ostest/barrier.c
index d30c294..a304448 100644
--- a/testing/ostest/barrier.c
+++ b/testing/ostest/barrier.c
@@ -118,7 +118,7 @@ void barrier_test(void)
                                 CONFIG_TESTING_OSTEST_NBARRIER_THREADS);
   if (status != OK)
     {
-      printf("barrier_test: pthread_barrierattr_init failed, status=%d\n",
+      printf("barrier_test: pthread_barrier_init failed, status=%d\n",
              status);
     }
 

[incubator-nuttx-apps] 02/04: testing/smp/smp_main.c: Remove duplicate initialization of the barrier's attributes.

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit eb228229d82f13de3a356f7dd127fa8db5f7969c
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Wed Jul 28 17:00:00 2021 +0200

    testing/smp/smp_main.c: Remove duplicate initialization of the barrier's
    attributes.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 testing/smp/smp_main.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/testing/smp/smp_main.c b/testing/smp/smp_main.c
index f1ba95b..bab00fe 100644
--- a/testing/smp/smp_main.c
+++ b/testing/smp/smp_main.c
@@ -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);

[incubator-nuttx-apps] 04/04: testing/ostest/barrier: Remove duplicate initialization of the barrier's attributes.

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit b1fb24d5b9c206492dededd973d9e5558c890dab
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Wed Jul 28 17:05:11 2021 +0200

    testing/ostest/barrier: Remove duplicate initialization of the barrier's
    attributes.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 testing/ostest/barrier.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/testing/ostest/barrier.c b/testing/ostest/barrier.c
index a304448..8fc9768 100644
--- a/testing/ostest/barrier.c
+++ b/testing/ostest/barrier.c
@@ -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);