CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
MemoryController.h
Go to the documentation of this file.
1
9
10#if !defined(_MEMORYCONTROLLER_H_)
11#define _MEMORYCONTROLLER_H_
12
13#include "Types.h"
14
15namespace cmlabs {
16
17// Interface for all MemoryControllers
23public:
25 virtual ~MemoryController();
26
27 virtual bool setID(uint16 id) = 0;
28 virtual uint16 getID() = 0;
29
30 virtual bool setDynamicShmemSize(uint64 memorySize) = 0;
31 virtual uint64 getDynamicShmemSize() = 0;
32
33 virtual uint32 getDynamicShmemSerial() = 0;
34 virtual uint32 incrementDynamicShmemSerial() = 0;
35};
36
37
38} // namespace cmlabs
39
40#endif //_MEMORYCONTROLLER_H_
41
Core fixed-width scalar typedefs and the PsyType / PsyContext hierarchical identifiers.
virtual bool setID(uint16 id)=0
Set the node id.
virtual uint16 getID()=0
virtual bool setDynamicShmemSize(uint64 memorySize)=0
Record the dynamic segment's new byte size.
virtual uint32 incrementDynamicShmemSerial()=0
Bump the serial after re-creating the segment.
virtual uint32 getDynamicShmemSerial()=0
virtual uint64 getDynamicShmemSize()=0