Changeset a070c8b in rtems


Ignore:
Timestamp:
May 21, 2014, 7:30:14 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
eae0863
Parents:
1bf0666
git-author:
Sebastian Huber <sebastian.huber@…> (05/21/14 07:30:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/22/14 05:59:34)
Message:

rtems: Simplify rtems_semaphore_obtain()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/semobtain.c

    r1bf0666 ra070c8b  
    4242  ISR_Level                       level;
    4343  Thread_Control                 *executing;
     44  bool                            wait;
    4445
    4546  the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level );
     
    4849    case OBJECTS_LOCAL:
    4950      executing = _Thread_Executing;
     51      wait = !_Options_Is_no_wait( option_set );
    5052      if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
    5153        _CORE_mutex_Seize(
     
    5355          executing,
    5456          id,
    55           ((_Options_Is_no_wait( option_set )) ? false : true),
     57          wait,
    5658          timeout,
    5759          level
     
    6769        executing,
    6870        id,
    69         ((_Options_Is_no_wait( option_set )) ? false : true),
     71        wait,
    7072        timeout,
    7173        level
Note: See TracChangeset for help on using the changeset viewer.