Changeset 5870ac55 in rtems for cpukit/score/inline


Ignore:
Timestamp:
Jan 5, 2000, 10:19:21 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ef03d0e
Parents:
5283cc82
Message:

Added support for simple binary semaphores in addition to the high
power binary/mutex style semaphores already supported by RTEMS. This
was done at the request of Eric Norum <eric@…> in support
of his effort to port EPICS to RTEMS. This change consisted of
changing the nesting_allowed boolean into a lock_nesting_behavior
enumerated value as well as allowing the core mutex object to optionally
support ensuring that the holder of a binary semaphore released it.
Finally, a more subtle enhancement was to allow the non-holder to release
a priority inheritance/ceiling mutex and still allow the holding task
to return to its original priority.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/inline/rtems/score/coremutex.inl

    r5283cc82 r5870ac55  
    102102}
    103103 
    104 /*PAGE
    105  *
    106  *  _CORE_mutex_Is_nesting_allowed
    107  *
    108  *  DESCRIPTION:
    109  *
    110  *  This routine returns TRUE if the mutex allows a task to obtain a
    111  *  semaphore more than once and nest.
    112  */
    113  
    114 RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_nesting_allowed(
    115   CORE_mutex_Attributes *the_attribute
    116 )
    117 {
    118   return the_attribute->allow_nesting == TRUE;
    119  
    120 }
    121  
    122104#endif
    123105/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.