Changeset b20b736 in rtems for cpukit/rtems


Ignore:
Timestamp:
Jun 28, 2016, 4:54:50 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5eb769ca
Parents:
52a661e8
git-author:
Sebastian Huber <sebastian.huber@…> (06/28/16 04:54:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/08/16 07:55:28)
Message:

score: Introduce _Thread_Get_priority()

Avoid direct access to thread internal data fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/tasksetpriority.c

    r52a661e8 rb20b736  
    4444  context = arg;
    4545  scheduler = _Scheduler_Get_own( the_thread );
    46   current_priority = the_thread->current_priority;
     46  current_priority = _Thread_Get_priority( the_thread );
    4747
    4848  context->scheduler = scheduler;
     
    118118    _Thread_State_acquire_critical( the_thread, &lock_context );
    119119    scheduler = _Scheduler_Get_own( the_thread );
    120     old_priority = the_thread->current_priority;
     120    old_priority = _Thread_Get_priority( the_thread );
    121121    _Thread_State_release( the_thread, &lock_context );
    122122    status = RTEMS_SUCCESSFUL;
Note: See TracChangeset for help on using the changeset viewer.