You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/06/06 19:14:36 UTC

[incubator-nuttx] branch master updated: boards/sim: Break out the thread loop instead calling pthread_exit

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4037669  boards/sim: Break out the thread loop instead calling pthread_exit
4037669 is described below

commit 40376697d7cc15e0dfc3c972d96dd94496873449
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Jun 7 02:17:11 2020 +0800

    boards/sim: Break out the thread loop instead calling pthread_exit
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
    Change-Id: I744d06d7a669067c68b74c69f3961f34673d81a0
---
 boards/sim/sim/sim/src/sim_touchscreen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/boards/sim/sim/sim/src/sim_touchscreen.c b/boards/sim/sim/sim/src/sim_touchscreen.c
index 5b183f0..97dea33 100644
--- a/boards/sim/sim/sim/src/sim_touchscreen.c
+++ b/boards/sim/sim/sim/src/sim_touchscreen.c
@@ -112,7 +112,7 @@ static FAR void *sim_listener(FAR void *arg)
            */
 
           fwarn("WARNING: Lost server connection: %d\n", errno);
-          pthread_exit(NULL);
+          break;
         }
 
       /* If we received a message, we must be connected */
@@ -125,7 +125,7 @@ static FAR void *sim_listener(FAR void *arg)
         }
     }
 
-  return NULL; /* Not-reachable */
+  return NULL;
 }
 
 /****************************************************************************