Add task name to NxWidgets::CNxServer and NxWM:CTouchScreen
This commit is contained in:
parent
2bc22450d2
commit
a910c967ba
@ -41,6 +41,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/boardctl.h>
|
||||
#include <sys/prctl.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
@ -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)
|
||||
|
@ -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 <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -44,6 +44,8 @@
|
||||
#include <cfcntl>
|
||||
|
||||
#include <sys/boardctl.h>
|
||||
#include <sys/prctl.h>
|
||||
|
||||
#include <sched.h>
|
||||
#include <pthread.h>
|
||||
#include <assert.h>
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user