source: rtems-schedsim/schedsim/shell/schedsim_priority/printheir_executing.c @ 7c50462

Last change on this file since 7c50462 was abb18dc, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 25, 2011 at 3:53:10 PM

Initial import.

  • Property mode set to 100644
File size: 659 bytes
Line 
1/*
2 *  printheir_executing
3 *
4 *  COPYRIGHT (c) 1989-2010.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#include <stdio.h>
15#include <rtems.h>
16
17void PRINT_EXECUTING() {
18  printf(
19    "  Thread Executing: 0x%08x priority=%ld\n",
20    _Thread_Executing->Object.id,
21    (long) _Thread_Executing->current_priority
22  );
23}
24
25void PRINT_HEIR() {
26  printf( 
27    "  Thread Heir: 0x%08x priority=%ld\n", 
28    _Thread_Heir->Object.id, 
29    (long) _Thread_Heir->current_priority
30  );
31}
Note: See TracBrowser for help on using the repository browser.