posix: Remove superfluous thread dispatch disable

The _Thread_queue_Enqueue_critical() already deals with thread
dispatching.

Update #2555.
This commit is contained in:
Sebastian Huber
2016-05-02 07:46:17 +02:00
parent d5cc9fd6f1
commit 259d885168
+12 -14
View File
@@ -150,20 +150,18 @@ int sigtimedwait(
the_info->si_signo = -1;
_Thread_Disable_dispatch();
executing->Wait.return_code = EINTR;
executing->Wait.option = *set;
executing->Wait.return_argument = the_info;
_Thread_queue_Enqueue_critical(
&_POSIX_signals_Wait_queue.Queue,
POSIX_SIGNALS_TQ_OPERATIONS,
executing,
STATES_WAITING_FOR_SIGNAL | STATES_INTERRUPTIBLE_BY_SIGNAL,
interval,
EAGAIN,
&lock_context
);
_Thread_Enable_dispatch();
executing->Wait.return_code = EINTR;
executing->Wait.option = *set;
executing->Wait.return_argument = the_info;
_Thread_queue_Enqueue_critical(
&_POSIX_signals_Wait_queue.Queue,
POSIX_SIGNALS_TQ_OPERATIONS,
executing,
STATES_WAITING_FOR_SIGNAL | STATES_INTERRUPTIBLE_BY_SIGNAL,
interval,
EAGAIN,
&lock_context
);
/*
* When the thread is set free by a signal, it is need to eliminate