4.104.114.84.95
Line | |
---|
1 | /* tasks.inl |
---|
2 | * |
---|
3 | * This file contains the macro implementation of all inlined |
---|
4 | * routines in the with RTEMS Tasks Manager. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-1999. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.OARcorp.com/rtems/license.html. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef __RTEMS_TASKS_inl |
---|
17 | #define __RTEMS_TASKS_inl |
---|
18 | |
---|
19 | /*PAGE |
---|
20 | * |
---|
21 | * _RTEMS_tasks_Allocate |
---|
22 | * |
---|
23 | */ |
---|
24 | |
---|
25 | #define _RTEMS_tasks_Allocate() \ |
---|
26 | (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information ) |
---|
27 | |
---|
28 | /*PAGE |
---|
29 | * |
---|
30 | * _RTEMS_tasks_Free |
---|
31 | * |
---|
32 | */ |
---|
33 | |
---|
34 | #define _RTEMS_tasks_Free( _the_task ) \ |
---|
35 | _Objects_Free( &_RTEMS_tasks_Information, &(_the_task)->Object ) |
---|
36 | |
---|
37 | /*PAGE |
---|
38 | * |
---|
39 | * _RTEMS_tasks_Priority_to_Core |
---|
40 | */ |
---|
41 | |
---|
42 | #define _RTEMS_tasks_Priority_to_Core( _priority ) \ |
---|
43 | ((Priority_Control) (_priority)) |
---|
44 | |
---|
45 | /*PAGE |
---|
46 | * |
---|
47 | * _RTEMS_tasks_Priority_is_valid |
---|
48 | * |
---|
49 | */ |
---|
50 | |
---|
51 | #define _RTEMS_tasks_Priority_is_valid( _the_priority ) \ |
---|
52 | ( ((_the_priority) >= RTEMS_MINIMUM_PRIORITY) && \ |
---|
53 | ((_the_priority) <= RTEMS_MAXIMUM_PRIORITY) ) |
---|
54 | |
---|
55 | |
---|
56 | #endif |
---|
57 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.