C++ TargetRTS
Loading...
Searching...
No Matches
RTPriority.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2021. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __RTPriority_h__
11#define __RTPriority_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTInteger_h__
18#include <RTInteger.h>
19#endif
20
21enum
22{
23 Synchronous = 0,
24 System = 1,
25 Panic = 2,
26 High = 3,
27 General = 4,
28 Low = 5,
29 Background = 6
30};
31
32enum
33{
34 OTRTS_NUMPRIO = ( Background - Synchronous + 1 )
35};
36
37class RTPriority : public RTInteger
38{
39public:
40 static RTS_INLINE int isValid( int );
41 static const char * name( int );
42 static int lookup( const char * );
43
44 enum { Default = General };
45
46 RTPriority( int = Default ); //lint !e1931
47 RTPriority( const RTPriority & );
48 virtual ~RTPriority( void );
49
50 RTS_INLINE const char * name( void ) const;
51
52 virtual const RTObject_class * getClassData( void ) const override;
53 static const RTObject_class classData;
54
55#define RTType_RTPriority ( RTPriority::classData )
56};
57
59{
60 const void * data;
61 const RTObject_class * type;
62
63 RTS_INLINE RTTypedValue_RTPriority( const RTPriority & ); //lint !e1931
64 RTS_INLINE RTTypedValue_RTPriority( const RTPriority &,
65 const RTObject_class * );
66}; //lint !e1712
67
68#if RTS_INLINES
69#include <RTPriority.inl>
70#endif
71
72#endif // __RTPriority_h__
Definition: RTInteger.h:22
Definition: RTPriority.h:38
A type descriptor providing information about a type.
Definition: RTObject_class.h:64
Definition: RTPriority.h:59