Changeset db3a3de in rtems


Ignore:
Timestamp:
Oct 10, 2017, 8:03:48 AM (22 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a3ad4af
Parents:
bd5be58f
Message:

score: Add _Thread_queue_Dispatch_disable()

Location:
cpukit
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/muteximpl.h

    rbd5be58f rdb3a3de  
    322322  _Thread_Wait_release_default_critical( owner, &lock_context );
    323323
    324   cpu_self = _Thread_Dispatch_disable_critical(
    325     &queue_context->Lock_context.Lock_context
    326   );
     324  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    327325  _POSIX_Mutex_Release( the_mutex, queue_context );
    328326  _Thread_Priority_update( queue_context );
     
    414412  _Thread_Wait_release_default_critical( executing, &lock_context );
    415413
    416   cpu_self = _Thread_Dispatch_disable_critical(
    417     &queue_context->Lock_context.Lock_context
    418   );
     414  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    419415
    420416  heads = the_mutex->Recursive.Mutex.Queue.Queue.heads;
  • cpukit/posix/src/pthreadsetschedparam.c

    rbd5be58f rdb3a3de  
    156156    &queue_context
    157157  );
    158   cpu_self = _Thread_Dispatch_disable_critical(
    159     &queue_context.Lock_context.Lock_context
    160   );
     158  cpu_self = _Thread_queue_Dispatch_disable( &queue_context );
    161159  _Thread_Wait_release( the_thread, &queue_context );
    162160  _Thread_Priority_update( &queue_context );
  • cpukit/posix/src/pthreadsetschedprio.c

    rbd5be58f rdb3a3de  
    5454  );
    5555
    56   cpu_self = _Thread_Dispatch_disable_critical(
    57     &queue_context.Lock_context.Lock_context
    58   );
     56  cpu_self = _Thread_queue_Dispatch_disable( &queue_context );
    5957  _Thread_Wait_release( the_thread, &queue_context );
    6058
  • cpukit/rtems/src/semsetpriority.c

    rbd5be58f rdb3a3de  
    111111  }
    112112
    113   cpu_self = _Thread_Dispatch_disable_critical(
    114     &queue_context->Lock_context.Lock_context
    115   );
     113  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    116114  _Thread_queue_Release(
    117115    &the_semaphore->Core_control.Wait_queue,
  • cpukit/rtems/src/taskdelete.c

    rbd5be58f rdb3a3de  
    4848    Per_CPU_Control *cpu_self;
    4949
    50     cpu_self = _Thread_Dispatch_disable_critical(
    51       &context.Base.Lock_context.Lock_context
    52     );
     50    cpu_self = _Thread_queue_Dispatch_disable( &context.Base );
    5351    _ISR_lock_ISR_enable( &context.Base.Lock_context.Lock_context );
    5452
  • cpukit/rtems/src/tasksetpriority.c

    rbd5be58f rdb3a3de  
    5252    queue_context
    5353  );
    54   cpu_self = _Thread_Dispatch_disable_critical(
    55     &queue_context->Lock_context.Lock_context
    56   );
     54  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    5755  _Thread_Wait_release( the_thread, queue_context );
    5856  _Thread_Priority_update( queue_context );
  • cpukit/rtems/src/tasksetscheduler.c

    rbd5be58f rdb3a3de  
    5959  }
    6060
    61   cpu_self = _Thread_Dispatch_disable_critical(
    62     &queue_context.Lock_context.Lock_context
    63   );
    64 
     61  cpu_self = _Thread_queue_Dispatch_disable( &queue_context );
    6562  _Thread_Wait_acquire_critical( the_thread, &queue_context );
    6663  _Thread_State_acquire_critical( the_thread, &state_context );
  • cpukit/score/include/rtems/score/coremuteximpl.h

    rbd5be58f rdb3a3de  
    306306  _Thread_Wait_release_default_critical( owner, &lock_context );
    307307
    308   cpu_self = _Thread_Dispatch_disable_critical(
    309     &queue_context->Lock_context.Lock_context
    310   );
     308  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    311309  _CORE_mutex_Release( &the_mutex->Recursive.Mutex, queue_context );
    312310  _Thread_Priority_update( queue_context );
  • cpukit/score/include/rtems/score/mrspimpl.h

    rbd5be58f rdb3a3de  
    180180
    181181  _MRSP_Set_owner( mrsp, executing );
    182   cpu_self = _Thread_Dispatch_disable_critical(
    183     &queue_context->Lock_context.Lock_context
    184   );
     182  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    185183  _MRSP_Release( mrsp, queue_context );
    186184  _Thread_Priority_and_sticky_update( executing, 1 );
  • cpukit/score/include/rtems/score/threadqimpl.h

    rbd5be58f rdb3a3de  
    2727#include <rtems/score/status.h>
    2828#include <rtems/score/thread.h>
     29#include <rtems/score/threaddispatch.h>
    2930
    3031#if defined(RTEMS_DEBUG)
     
    275276    &queue_context->Lock_context.Lock_context,
    276277    level
     278  );
     279}
     280
     281RTEMS_INLINE_ROUTINE Per_CPU_Control *_Thread_queue_Dispatch_disable(
     282  Thread_queue_Context *queue_context
     283)
     284{
     285  return _Thread_Dispatch_disable_critical(
     286    &queue_context->Lock_context.Lock_context
    277287  );
    278288}
  • cpukit/score/src/threadqenqueue.c

    rbd5be58f rdb3a3de  
    446446  the_thread->Wait.return_code = STATUS_SUCCESSFUL;
    447447  _Thread_Wait_flags_set( the_thread, THREAD_QUEUE_INTEND_TO_BLOCK );
    448   cpu_self = _Thread_Dispatch_disable_critical(
    449     &queue_context->Lock_context.Lock_context
    450   );
     448  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    451449  _Thread_queue_Queue_release( queue, &queue_context->Lock_context.Lock_context );
    452450
     
    514512  the_thread->Wait.return_code = STATUS_SUCCESSFUL;
    515513  _Thread_Wait_flags_set( the_thread, THREAD_QUEUE_INTEND_TO_BLOCK );
    516   cpu_self = _Thread_Dispatch_disable_critical(
    517     &queue_context->Lock_context.Lock_context
    518   );
     514  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    519515  _Thread_queue_Queue_release( queue, &queue_context->Lock_context.Lock_context );
    520516
     
    716712  unblock = _Thread_queue_Make_ready_again( new_owner );
    717713
    718   cpu_self = _Thread_Dispatch_disable_critical(
    719     &queue_context->Lock_context.Lock_context
    720   );
     714  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    721715  _Thread_queue_Queue_release(
    722716    queue,
     
    757751  _Thread_queue_Make_ready_again( new_owner );
    758752
    759   cpu_self = _Thread_Dispatch_disable_critical(
    760     &queue_context->Lock_context.Lock_context
    761   );
     753  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    762754  _Thread_queue_Queue_release(
    763755    queue,
  • cpukit/score/src/threadqflush.c

    rbd5be58f rdb3a3de  
    116116    Per_CPU_Control *cpu_self;
    117117
    118     cpu_self = _Thread_Dispatch_disable_critical(
    119       &queue_context->Lock_context.Lock_context
    120     );
     118    cpu_self = _Thread_queue_Dispatch_disable( queue_context );
    121119    _Thread_queue_Queue_release( queue, &queue_context->Lock_context.Lock_context );
    122120
Note: See TracChangeset for help on using the changeset viewer.