00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00028 #ifndef _RTXSTACK_H_
00029 #define _RTXSTACK_H_
00030
00031 #include "rtxsrc/rtxCommon.h"
00032
00033 #define OS_K_MAXSTACKDEPTH 32
00034
00046 typedef struct _OSRTStack {
00047 int level;
00048 void* data[OS_K_MAXSTACKDEPTH];
00049 } OSRTStack;
00050
00051 #ifdef __cplusplus
00052 extern "C" {
00053 #endif
00054
00061 EXTERNRTX OSRTStack* rtxStackCreate (void);
00062
00070 EXTERNRTX OSRTStack* rtxStackCreateEx (OSCTXT* pctxt);
00071
00078 EXTERNRTX void rtxStackInit (OSRTStack* pStack);
00079
00088 EXTERNRTX void* rtxStackPop (OSRTStack* pStack);
00089
00101 EXTERNRTX int rtxStackPush (OSRTStack* pStack, void* pData);
00102
00106 #ifdef __cplusplus
00107 }
00108 #endif
00109
00110 #endif