Ignore:
Timestamp:
07/10/14 10:49:43 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
27783f6
Parents:
76ad756c
git-author:
Sebastian Huber <sebastian.huber@…> (07/10/14 10:49:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/10/14 13:29:57)
Message:

score: Fix assertions

File:
1 edited

Legend:

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

    r76ad756c r333f942  
    8585  Scheduler_simple_SMP_Context *self =
    8686    _Scheduler_simple_SMP_Get_self( context );
     87  Scheduler_Node *first = (Scheduler_Node *) _Chain_First( &self->Ready );
    8788
    8889  (void) node;
    8990
    90   return (Scheduler_Node *) _Chain_First( &self->Ready );
     91  _Assert( &first->Node != _Chain_Tail( &self->Ready ) );
     92
     93  return first;
    9194}
    9295
Note: See TracChangeset for help on using the changeset viewer.