From a910c967bad302b2b56ace56366c4c060e4e69e9 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Thu, 22 Sep 2016 12:07:26 -0600 Subject: [PATCH] Add task name to NxWidgets::CNxServer and NxWM:CTouchScreen --- libnxwidgets/src/cnxserver.cxx | 3 +++ nxwm/src/ctouchscreen.cxx | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libnxwidgets/src/cnxserver.cxx b/libnxwidgets/src/cnxserver.cxx index d412988eb..f8d2dfe9c 100644 --- a/libnxwidgets/src/cnxserver.cxx +++ b/libnxwidgets/src/cnxserver.cxx @@ -41,6 +41,7 @@ #include #include +#include #include #include @@ -480,6 +481,8 @@ FAR void *CNxServer::listener(FAR void *arg) CNxServer *This = (CNxServer*)arg; + prctl(PR_SET_NAME, "CNxServer::listener", 0); + // Process events forever while (!This->m_stop) diff --git a/nxwm/src/ctouchscreen.cxx b/nxwm/src/ctouchscreen.cxx index 6d7031ebb..9a4b777b8 100644 --- a/nxwm/src/ctouchscreen.cxx +++ b/nxwm/src/ctouchscreen.cxx @@ -1,7 +1,7 @@ /******************************************************************************************** * NxWidgets/nxwm/src/ctouchscreen.cxx * - * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,8 @@ #include #include +#include + #include #include #include @@ -277,6 +279,8 @@ FAR void *CTouchscreen::listener(FAR void *arg) { CTouchscreen *This = (CTouchscreen *)arg; + prctl(PR_SET_NAME, "CTouchScreen::listener", 0); + _info("Listener started\n"); #ifdef CONFIG_NXWM_TOUCHSCREEN_DEVINIT