Ignore:
Timestamp:
Jul 28, 2010, 8:39:48 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
57c841e9
Parents:
ec6a5a1
Message:

2010-07-28 Vinu Rajashekhar <vinutheraj@…>

  • posix/src/condinit.c, posix/src/condwaitsupp.c, posix/src/psignalunblockthread.c: Clean up some signal interruption code.
File:
1 edited

Legend:

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

    rec6a5a1 rc838e2f4  
    102102      the_thread->Wait.return_code = EINTR;
    103103      /*
    104        *  At this time, there is no RTEMS API object which lets a task
    105        *  block on a thread queue and be interruptible by a POSIX signal.
    106        *  If an object class with that requirement is ever added, enable
    107        *  this code.
     104       *  In pthread_cond_wait, a thread will be blocking on a thread
     105       *  queue, but is also interruptible by a POSIX signal.
    108106       */
    109       #if 0
    110107        if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
    111108          _Thread_queue_Extract_with_proxy( the_thread );
    112         else
    113       #endif
    114           if ( _States_Is_delaying(the_thread->current_state) ){
     109        else if ( _States_Is_delaying(the_thread->current_state) ){
    115110            if ( _Watchdog_Is_active( &the_thread->Timer ) )
    116111              (void) _Watchdog_Remove( &the_thread->Timer );
    117112            _Thread_Unblock( the_thread );
    118113          }
     114
    119115    } else if ( the_thread->current_state == STATES_READY ) {
    120116      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
Note: See TracChangeset for help on using the changeset viewer.