/* * COPYRIGHT (c) 1989-2013. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. */ #include #include #include #include #include #include "shell.h" #include "rtems_sched.h" #include int main_dump_ready_tasks(int argc, char **argv) { Chain_Control *chain; Chain_Node *n; Thread_Control *t; printf( "=== Ready Set of Threads\n" ); chain = (Chain_Control *)_Scheduler.information; for (n = _Chain_First( chain ); !_Chain_Is_tail(chain, n); n = n->next) { t = (Thread_Control *)n; printf( " 0x%08x priority=%ld\n", t->Object.id, (long) t->current_priority ); } printf( "=== End of Ready Set of Threads\n" ); return 0; }