signal: Replace NuttX special SIGWORK with SIGPAGING(SIGRTMIN)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
5ce5d01d75
commit
beb38917d1
@ -160,12 +160,6 @@
|
||||
|
||||
#define SIGIO SIGPOLL
|
||||
|
||||
/* The following are non-standard signal definitions */
|
||||
|
||||
/* SIGWORK is used to wake up various internal NuttX worker threads */
|
||||
|
||||
#define SIGWORK 31 /* Used to wake up the work queue */
|
||||
|
||||
/* sigprocmask() "how" definitions. Only one of the following can be specified: */
|
||||
|
||||
#define SIG_BLOCK 1 /* Block the given signals */
|
||||
|
@ -158,13 +158,6 @@ FAR char *strsignal(int signum)
|
||||
return (FAR char *)"SIGTERM";
|
||||
#endif
|
||||
|
||||
/* Non-standard signals */
|
||||
|
||||
#ifdef SIGWORK
|
||||
case SIGWORK:
|
||||
return (FAR char *)"SIGWORK";
|
||||
#endif
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -27,6 +27,8 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
|
||||
/****************************************************************************
|
||||
@ -51,6 +53,8 @@
|
||||
# define CONFIG_PAGING_STACKSIZE CONFIG_IDLETHREAD_STACKSIZE
|
||||
#endif
|
||||
|
||||
#define SIGPAGING SIGRTMIN
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
@ -179,7 +179,7 @@ void pg_miss(void)
|
||||
if (!g_pftcb)
|
||||
{
|
||||
pginfo("Signaling worker. PID: %d\n", g_pgworker);
|
||||
nxsig_kill(g_pgworker, SIGWORK);
|
||||
nxsig_kill(g_pgworker, SIGPAGING);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -177,7 +177,7 @@ static void pg_callback(FAR struct tcb_s *tcb, int result)
|
||||
/* Signal the page fill worker thread (in any event) */
|
||||
|
||||
pginfo("Signaling worker. PID: %d\n", g_pgworker);
|
||||
nxsig_kill(g_pgworker, SIGWORK);
|
||||
nxsig_kill(g_pgworker, SIGPAGING);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user