Ignore:
Timestamp:
Aug 11, 2016, 8:26:57 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
55faa44
Parents:
a827447
git-author:
Sebastian Huber <sebastian.huber@…> (08/11/16 08:26:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/11/16 09:13:42)
Message:

score: Introduce thread queue surrender operation

This is an optimization for _Thread_queue_Surrender(). It helps to
encapsulate the priority boosting in the priority inheritance thread
queue operations.

File:
1 edited

Legend:

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

    ra827447 r424ffe4d  
    372372
    373373/**
     374 * @brief Thread queue surrender operation.
     375 *
     376 * This operation must dequeue and return the first thread on the queue.
     377 *
     378 * @param[in] queue The actual thread queue.
     379 * @param[in] heads The thread queue heads.  It must not be NULL.
     380 * @param[in] previous_owner The previous owner of the thread queue.
     381 *
     382 * @return The previous first thread on the queue.
     383 */
     384typedef Thread_Control *( *Thread_queue_Surrender_operation )(
     385  Thread_queue_Queue *queue,
     386  Thread_queue_Heads *heads,
     387  Thread_Control     *previous_owner
     388);
     389
     390/**
    374391 * @brief Thread queue first operation.
    375392 *
     
    417434
    418435  /**
     436   * @brief Thread queue surrender operation.
     437   */
     438  Thread_queue_Surrender_operation surrender;
     439
     440  /**
    419441   * @brief Thread queue first operation.
    420442   */
Note: See TracChangeset for help on using the changeset viewer.