mirror of
https://github.com/apache/nuttx.git
synced 2025-12-14 15:56:20 +08:00
Revert "sched/signal: Unblock task waiting for event when a signal received"
Some checks failed
Build Documentation / build-html (push) Has been cancelled
Some checks failed
Build Documentation / build-html (push) Has been cancelled
Events are not defined in the POSIX standard, so signals are not required to wake tasks that are in the TSTATE_WAIT_EVENT state. Signed-off-by: Chengdong Wang wangchengdong@lixiang.com
This commit is contained in:
committed by
Alan C. Assis
parent
a9ecff5f1c
commit
df3fe0e16f
@@ -43,7 +43,6 @@
|
|||||||
#include "sched/sched.h"
|
#include "sched/sched.h"
|
||||||
#include "group/group.h"
|
#include "group/group.h"
|
||||||
#include "semaphore/semaphore.h"
|
#include "semaphore/semaphore.h"
|
||||||
#include "event/event.h"
|
|
||||||
#include "signal/signal.h"
|
#include "signal/signal.h"
|
||||||
#include "mqueue/mqueue.h"
|
#include "mqueue/mqueue.h"
|
||||||
|
|
||||||
@@ -656,17 +655,6 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info,
|
|||||||
nxsem_wait_irq(stcb, EINTR);
|
nxsem_wait_irq(stcb, EINTR);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_EVENTS
|
|
||||||
/* If the task is blocked waiting for a event, then that task must
|
|
||||||
* be unblocked when a signal is received.
|
|
||||||
*/
|
|
||||||
|
|
||||||
else if (stcb->task_state == TSTATE_WAIT_EVENT)
|
|
||||||
{
|
|
||||||
nxevent_wait_irq(stcb, EINTR);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(CONFIG_DISABLE_MQUEUE) || !defined(CONFIG_DISABLE_MQUEUE_SYSV)
|
#if !defined(CONFIG_DISABLE_MQUEUE) || !defined(CONFIG_DISABLE_MQUEUE_SYSV)
|
||||||
/* If the task is blocked waiting on a message queue, then that task
|
/* If the task is blocked waiting on a message queue, then that task
|
||||||
* must be unblocked when a signal is received.
|
* must be unblocked when a signal is received.
|
||||||
|
|||||||
Reference in New Issue
Block a user