source: ada-examples/task_priority/empty.c @ 6e8632f

ada-examples-4-10-branchada-examples-4-9-branch
Last change on this file since 6e8632f was 6e8632f, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 23, 2008 at 4:05:13 PM

2008-07-23 Joel Sherrill <joel.sherrill@…>

  • empty.c, task_priority.adb: Switch to 150/151. Clean up output.
  • Property mode set to 100644
File size: 294 bytes
Line 
1#if defined(__rtems__)
2#include <rtems.h>
3#endif
4
5int getPriority()
6{
7#if defined(__rtems__)
8  printk( "ID=0x%08x ", _Thread_Executing->Object.id );
9
10  return (int)_Thread_Executing->current_priority;
11#endif
12  return 0;
13}
14
15void empty()
16{
17  #if defined(__rtems__)
18    // printk(".");
19  #endif
20}
Note: See TracBrowser for help on using the repository browser.