Changeset c838e2f4 in rtems for cpukit/posix/src/condwaitsupp.c


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/condwaitsupp.c

    rec6a5a1 rc838e2f4  
    8686         */
    8787
     88        /*
     89         *  If the thread is interrupted, while in the thread queue, by
     90         *  a POSIX signal, then pthread_cond_wait returns spuriously,
     91         *  according to the POSIX standard. It means that pthread_cond_wait
     92         *  returns a success status, except for the fact that it was not
     93         *  woken up a pthread_cond_signal or a pthread_cond_broadcast.
     94         */
    8895        status = _Thread_Executing->Wait.return_code;
    89         if ( status && status != ETIMEDOUT )
    90           return status;
     96        if ( status == EINTR )
     97          status = 0;
    9198
    9299      } else {
Note: See TracChangeset for help on using the changeset viewer.