Ignore:
Timestamp:
Feb 8, 2018, 9:47:16 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
dc8fd01
Parents:
a49dfb1
git-author:
Sebastian Huber <sebastian.huber@…> (02/08/18 09:47:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/08/18 10:20:40)
Message:

Use _Thread_Dispatch_direct()

Use _Thread_Dispatch_direct() for operations that block the executing
thread. This ensures that we get a fatal error
(INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL) if we try to block in
an invalid context, e.g. during system start or an interrupt handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadrestart.c

    ra49dfb1 red24ed4e  
    301301    _Thread_Set_state_locked( executing, STATES_WAITING_FOR_JOIN_AT_EXIT );
    302302    _Thread_State_release( executing, &lock_context );
    303     _Thread_Dispatch_enable( cpu_self );
     303    _Thread_Dispatch_direct( cpu_self );
    304304
    305305    /* Let other threads run */
     
    661661
    662662  _Thread_Priority_update( &queue_context );
    663   _Thread_Dispatch_enable( cpu_self );
     663  _Thread_Dispatch_direct( cpu_self );
    664664  RTEMS_UNREACHABLE();
    665665}
Note: See TracChangeset for help on using the changeset viewer.