C++ TargetRTS
Loading...
Searching...
No Matches
RTResourceMgr.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 __RTResourceMgr_h__
11#define __RTResourceMgr_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTConfig_h__
18#include <RTConfig.h>
19#endif
20
21class RTMessage;
22struct RTMessageBlock;
23#if USE_THREADS
24class RTMutex;
25#endif
26
28{
29protected:
30 RTMessage * messages;
31 RTMessageBlock * blocks;
32#if USE_THREADS
33 RTMutex * access;
34#endif
35
36public:
37 RTResourceMgr( void );
38 ~RTResourceMgr( void );
39
40 unsigned msgAlloc( RTMessage * &, unsigned howMany = 50U );
41 void msgFree ( RTMessage * &, unsigned howMany = 0U );
42
43private:
44 // unavailable methods
46 RTResourceMgr & operator=( const RTResourceMgr & );
47};
48
49#endif // __RTResourceMgr_h__
Represents a message used for communication between capsule instances.
Definition: RTMessage.h:33
Definition: RTResourceMgr.h:28
Definition: RTMessageBlock.h:22