Changeset d2ffb7dc in rtems


Ignore:
Timestamp:
Feb 26, 2015, 10:35:28 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
e50297e
Parents:
b99be6e
git-author:
Sebastian Huber <sebastian.huber@…> (02/26/15 10:35:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/04/15 11:03:02)
Message:

score: Add and use _Thread_Enable_dispatch_body()

Update #2273.

Location:
cpukit/score
Files:
2 edited

Legend:

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

    rb99be6e rd2ffb7dc  
    227227#endif
    228228
     229RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch_body( void )
     230{
     231  if ( _Thread_Dispatch_decrement_disable_level() == 0 )
     232    _Thread_Dispatch();
     233}
     234
    229235/**
    230236 * This routine allows dispatching to occur again.  If this is
     
    241247  {
    242248    RTEMS_COMPILER_MEMORY_BARRIER();
    243     if ( _Thread_Dispatch_decrement_disable_level() == 0 )
    244       _Thread_Dispatch();
     249    _Thread_Enable_dispatch_body();
    245250  }
    246251#endif
  • cpukit/score/src/threadenabledispatch.c

    rb99be6e rd2ffb7dc  
    2828void _Thread_Enable_dispatch( void )
    2929{
    30   if ( _Thread_Dispatch_decrement_disable_level() )
    31     return;
    32   _Thread_Dispatch();
     30  _Thread_Enable_dispatch_body();
    3331}
    3432#endif
Note: See TracChangeset for help on using the changeset viewer.