Changeset 98cef40 in rtems


Ignore:
Timestamp:
Jun 15, 2021, 10:28:25 AM (3 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f89a527
Parents:
6abdd89
git-author:
Sebastian Huber <sebastian.huber@…> (06/15/21 10:28:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/15/21 16:37:55)
Message:

score: Comment _Thread_queue_Surrender_sticky()

The change also helps to avoid reports from static analysers since most
callers of _Thread_queue_Make_ready_again() check the unblock status.

File:
1 edited

Legend:

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

    r6abdd89 r98cef40  
    734734  );
    735735  queue->owner = new_owner;
    736   _Thread_queue_Make_ready_again( new_owner );
     736
     737  /*
     738   * There is no need to check the unblock status, since in the corresponding
     739   * _Thread_queue_Enqueue_sticky() the thread is not blocked by the scheduler.
     740   * Instead, the thread busy waits for a change of its thread wait flags.
     741   */
     742  (void) _Thread_queue_Make_ready_again( new_owner );
    737743
    738744  cpu_self = _Thread_queue_Dispatch_disable( queue_context );
Note: See TracChangeset for help on using the changeset viewer.