Line | |
---|
1 | /* |
---|
2 | * printheir_executing |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2013. |
---|
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 | |
---|
12 | #include <stdio.h> |
---|
13 | #include <rtems.h> |
---|
14 | |
---|
15 | void PRINT_EXECUTING() { |
---|
16 | printf( |
---|
17 | " Thread Executing: 0x%08x priority=%ld\n", |
---|
18 | _Thread_Executing->Object.id, |
---|
19 | (long) _Thread_Executing->current_priority |
---|
20 | ); |
---|
21 | } |
---|
22 | |
---|
23 | void PRINT_HEIR() { |
---|
24 | printf( |
---|
25 | " Thread Heir: 0x%08x priority=%ld\n", |
---|
26 | _Thread_Heir->Object.id, |
---|
27 | (long) _Thread_Heir->current_priority |
---|
28 | ); |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.