Changeset d852e234 in rtems


Ignore:
Timestamp:
Jun 30, 2009, 5:54:50 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
f9ff8ce
Parents:
94ccbb7
Message:

2009-06-30 Joel Sherrill <joel.sherrill@…>

  • posix/src/prwlocktimedrdlock.c: Restructure if slightly to make to make it easier to analyze for coverage.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r94ccbb7 rd852e234  
     12009-06-30      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * posix/src/prwlocktimedrdlock.c: Restructure if slightly to make to
     4        make it easier to analyze for coverage.
     5
    162009-06-29      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/posix/src/prwlocktimedrdlock.c

    r94ccbb7 rd852e234  
    8686
    8787      _Thread_Enable_dispatch();
    88       if ( !do_wait &&
    89            (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
    90         switch (status) {
    91           case POSIX_ABSOLUTE_TIMEOUT_INVALID:
    92             return EINVAL;
    93           case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
    94           case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
    95             return ETIMEDOUT;
    96           case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
    97             break;
    98         }
     88      if ( !do_wait ) {
     89        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
     90          switch (status) {
     91            case POSIX_ABSOLUTE_TIMEOUT_INVALID:
     92              return EINVAL;
     93            case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
     94            case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
     95              return ETIMEDOUT;
     96            case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
     97              break;
     98          }
     99        }
    99100      }
    100101
Note: See TracChangeset for help on using the changeset viewer.