mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
signal: remove unused SIGCONDTIMEDOUT
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
104a7d4e00
commit
5651715486
4 changed files with 2 additions and 23 deletions
|
@ -296,14 +296,6 @@
|
|||
|
||||
/* The following are non-standard signal definitions */
|
||||
|
||||
#ifndef CONFIG_DISABLE_PTHREAD
|
||||
# ifndef CONFIG_SIG_SIGCONDTIMEDOUT
|
||||
# define SIGCONDTIMEDOUT 30 /* Used in the implementation of pthread_cond_timedwait */
|
||||
# else
|
||||
# define SIGCONDTIMEDOUT CONFIG_SIG_SIGCONDTIMEDOUT
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* SIGWORK is used to wake up various internal NuttX worker threads */
|
||||
|
||||
#if defined(CONFIG_SCHED_WORKQUEUE) || defined(CONFIG_PAGING)
|
||||
|
|
|
@ -160,11 +160,6 @@ FAR char *strsignal(int signum)
|
|||
|
||||
/* Non-standard signals */
|
||||
|
||||
#ifdef SIGCONDTIMEDOUT
|
||||
case SIGCONDTIMEDOUT:
|
||||
return (FAR char *)"SIGCONDTIMEDOUT";
|
||||
#endif
|
||||
|
||||
#ifdef SIGWORK
|
||||
case SIGWORK:
|
||||
return (FAR char *)"SIGWORK";
|
||||
|
|
|
@ -1649,14 +1649,6 @@ config SIG_POLL
|
|||
|
||||
comment "Non-standard Signal Numbers"
|
||||
|
||||
config SIG_SIGCONDTIMEDOUT
|
||||
int "SIGCONDTIMEDOUT"
|
||||
default 30
|
||||
depends on !DISABLE_PTHREAD
|
||||
---help---
|
||||
This non-standard signal number is used the implementation of
|
||||
pthread_cond_timedwait(). Default 30.
|
||||
|
||||
config SIG_SIGWORK
|
||||
int "SIGWORK"
|
||||
default 31
|
||||
|
|
|
@ -141,8 +141,8 @@ int pthread_cond_clockwait(FAR pthread_cond_t *cond,
|
|||
ret = pthread_mutex_give(mutex);
|
||||
if (ret == 0)
|
||||
{
|
||||
status = nxsem_clockwait_uninterruptible(
|
||||
&cond->sem, clockid, abstime);
|
||||
status = nxsem_clockwait_uninterruptible(&cond->sem,
|
||||
clockid, abstime);
|
||||
if (status < 0)
|
||||
{
|
||||
ret = -status;
|
||||
|
|
Loading…
Reference in a new issue