Changeset beba41b in rtems


Ignore:
Timestamp:
Apr 18, 2016, 3:10:03 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b8bdced1
Parents:
8765c57
git-author:
Sebastian Huber <sebastian.huber@…> (04/18/16 15:10:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/21/16 05:29:38)
Message:

posix: _POSIX_Condition_variables_Wait_support()

Simplify _POSIX_Condition_variables_Wait_support(), since there is no
need to validate the mutex twice.

File:
1 edited

Legend:

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

    r8765c57 rbeba41b  
    4141)
    4242{
    43   POSIX_Condition_variables_Control          *the_cond;
    44   POSIX_Mutex_Control                        *the_mutex;
    45   Objects_Locations                           location;
    46   int                                         status;
    47   int                                         mutex_status;
    48   Thread_Control                             *executing;
    49 
    50   the_mutex = _POSIX_Mutex_Get( mutex, &location );
    51   if ( !the_mutex ) {
    52      return EINVAL;
    53   }
    54 
    55   _Objects_Put_without_thread_dispatch( &the_mutex->Object );
     43  POSIX_Condition_variables_Control *the_cond;
     44  Objects_Locations                  location;
     45  int                                status;
     46  int                                mutex_status;
     47  Thread_Control                    *executing;
    5648
    5749  the_cond = _POSIX_Condition_variables_Get( cond, &location );
Note: See TracChangeset for help on using the changeset viewer.