Ignore:
Timestamp:
Sep 2, 2015, 9:58:54 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
dafa5d88
Parents:
c4db18a
git-author:
Sebastian Huber <sebastian.huber@…> (09/02/15 09:58:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/04/15 11:25:03)
Message:

score: Implement SMP-specific priority queue

File:
1 edited

Legend:

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

    rc4db18a r3995e6d  
    2323#include <rtems/score/chainimpl.h>
    2424#include <rtems/score/rbtreeimpl.h>
     25#include <rtems/score/scheduler.h>
    2526#include <rtems/score/thread.h>
    2627
     
    5152#endif
    5253} Thread_queue_Syslock_queue;
     54
     55RTEMS_INLINE_ROUTINE void _Thread_queue_Heads_initialize(
     56  Thread_queue_Heads *heads
     57)
     58{
     59#if defined(RTEMS_SMP)
     60  size_t i;
     61
     62  for ( i = 0; i < _Scheduler_Count; ++i ) {
     63    _RBTree_Initialize_empty( &heads->Priority[ i ].Queue );
     64  }
     65#endif
     66
     67  _Chain_Initialize_empty( &heads->Free_chain );
     68}
    5369
    5470RTEMS_INLINE_ROUTINE void _Thread_queue_Queue_initialize(
Note: See TracChangeset for help on using the changeset viewer.