-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDsSharedMemHeapRtos.h
99 lines (81 loc) · 2.33 KB
/
DsSharedMemHeapRtos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/** <!------------------------------------------------------------------------->
*
* @file DsSharedMemHeapRtos.h
*
* @brief <Brief description here>
*
* @author
* GeraldR
*
* @description
* <Description here>
*
* @copyright
* Copyright 2013, dSPACE GmbH. All rights reserved.
*
* @version
* $RCSfile: DsSharedMemHeapRtos.h $ $Revision: 1.0 $ $Date: 03.01.2013 $
* $ProjectName: $
*
* <hr><br>
*<!-------------------------------------------------------------------------->*/
#ifndef DSSHAREDMEMHEAPRTOS_H_
#define DSSHAREDMEMHEAPRTOS_H_
#include "DsTypes.h"
#include "DsSharedMemory.h"
#include "DsSharedMemHeap.h"
class DsSharedMemHeapRtos : public DsSharedMemHeap
{
public:
DsSharedMemHeapRtos();
int initHeap(void) { return 0; }
int openSharedMemory
( void **ppSharedMemory,
UInt32 *pSize,
const char *StrName,
UInt32 Id,
UInt32 Size,
int AttributeFlags,
int CreateFlags
);
int checkSharedMemory
( T_SHM_DESCRIPTOR *ppShmDescriptor,
const char *StrName,
UInt32 Id
);
int closeSharedMemory
( void *pSharedMemory,
int ForceRemove
);
int closeSharedMemory
( const char *StrName,
UInt32 Id,
int ForceRemove
);
int listSharedMemory
( T_SHM_DESCRIPTOR **ppShmList,
UInt32 *pNumEntries
);
int allocateCrossNodeMutex
( T_DsCrossNodeMutex **ppMutex,
const char *StrName
);
int lockCrossNodeMutex
( T_DsCrossNodeMutex *pMutex,
UInt32 TimeoutMicroseconds,
int MayBlock
);
int tryLockCrossNodeMutex
( T_DsCrossNodeMutex *pMutex
);
int releaseCrossNodeMutex
( T_DsCrossNodeMutex *pMutex
);
int freeCrossNodeMutex
( T_DsCrossNodeMutex *pMutex
);
int freeCrossNodeMutexByName
( const char *StrName
);
};
#endif /* DSSHAREDMEMHEAPRTOS_H_ */