Changeset 6db5e650 in rtems


Ignore:
Timestamp:
Mar 15, 2015, 9:16:24 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
dc5e5f44
Parents:
91c250fc
git-author:
Sebastian Huber <sebastian.huber@…> (03/15/15 09:16:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/15/15 09:24:40)
Message:

score: Add _Objects_ISR_disable_and_acquire()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/objectimpl.h

    r91c250fc r6db5e650  
    594594 * @brief Acquires an object by its identifier.
    595595 *
    596  * This function is similar to _Objects_Get_isr_disable().  It acquires the
    597  * object specific ISR lock for local objects.  Thread dispatching is not
    598  * disabled for local objects.  For remote objects thread dispatching is
    599  * disabled.
     596 * This function is similar to _Objects_Get_isr_disable().  It disables
     597 * interrupts and acquires the object specific ISR lock for local objects.
     598 * Thread dispatching is not disabled for local objects.  For remote objects
     599 * thread dispatching is disabled.
    600600 *
    601601 * @param[in] information The object information.
     
    605605 *
    606606 * @retval object The object corresponding to the identifier.
    607  * @retval NULL No object exists in this domain for this identifer.
    608  *
    609  * @see _Objects_Release(), _Objects_Release_and_ISR_enable(), and
    610  * _Objects_Release_and_thread_dispatch_disable().
     607 * @retval NULL No object exists in this domain for this identifier.
     608 *
     609 * @see _Objects_ISR_disable_and_acquire(), _Objects_Release(),
     610 *   _Objects_Release_and_ISR_enable(), and
     611 *   _Objects_Release_and_thread_dispatch_disable().
    611612 */
    612613Objects_Control *_Objects_Acquire(
     
    616617  ISR_lock_Context          *lock_context
    617618);
     619
     620/**
     621 * @brief Acquires a local object and disables interrupts.
     622 *
     623 * @param[in] the_object The local object to acquire.
     624 * @param[in] lock_context The lock context.
     625 */
     626RTEMS_INLINE_ROUTINE void _Objects_ISR_disable_and_acquire(
     627  Objects_Control  *the_object,
     628  ISR_lock_Context *lock_context
     629)
     630{
     631  _ISR_lock_ISR_disable_and_acquire( &the_object->Lock, lock_context );
     632}
    618633
    619634/**
Note: See TracChangeset for help on using the changeset viewer.