Changeset 259d885 in rtems


Ignore:
Timestamp:
Apr 28, 2016, 4:55:16 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
66374df
Parents:
d5cc9fd6
git-author:
Sebastian Huber <sebastian.huber@…> (04/28/16 04:55:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/02/16 05:46:17)
Message:

posix: Remove superfluous thread dispatch disable

The _Thread_queue_Enqueue_critical() already deals with thread
dispatching.

Update #2555.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/sigtimedwait.c

    rd5cc9fd6 r259d885  
    151151  the_info->si_signo = -1;
    152152
    153   _Thread_Disable_dispatch();
    154     executing->Wait.return_code     = EINTR;
    155     executing->Wait.option          = *set;
    156     executing->Wait.return_argument = the_info;
    157     _Thread_queue_Enqueue_critical(
    158       &_POSIX_signals_Wait_queue.Queue,
    159       POSIX_SIGNALS_TQ_OPERATIONS,
    160       executing,
    161       STATES_WAITING_FOR_SIGNAL | STATES_INTERRUPTIBLE_BY_SIGNAL,
    162       interval,
    163       EAGAIN,
    164       &lock_context
    165     );
    166   _Thread_Enable_dispatch();
     153  executing->Wait.return_code     = EINTR;
     154  executing->Wait.option          = *set;
     155  executing->Wait.return_argument = the_info;
     156  _Thread_queue_Enqueue_critical(
     157    &_POSIX_signals_Wait_queue.Queue,
     158    POSIX_SIGNALS_TQ_OPERATIONS,
     159    executing,
     160    STATES_WAITING_FOR_SIGNAL | STATES_INTERRUPTIBLE_BY_SIGNAL,
     161    interval,
     162    EAGAIN,
     163    &lock_context
     164  );
    167165
    168166  /*
Note: See TracChangeset for help on using the changeset viewer.