8 #ifndef MMultiProcess_SharedMemory_h 9 #define MMultiProcess_SharedMemory_h 15 #if defined(WIN32) || defined(WIN64) 17 #define MAX_INT_STR 65 18 #pragma warning(disable:4996) // '_ui64tow': This function or variable may be unsafe. Consider using _ui64tow_s instead. 31 int GetID() {
return mSharedMemoryID; }
33 #if defined(WIN32) || defined(WIN64) 38 _ui64tot(mSharedMemoryID,ipIdStr,10);
87 virtual void* GetReadBlock(
shm_size_t& orBlockSize,
Int64 iTimeOutInMillisecond=-1) = 0;
90 virtual bool WaitOnReadMemory(
Int64 iTimeOutInMillisecond=-1) = 0;
95 virtual void ReleaseBlock(
void* ipStartAddr) = 0;
99 virtual void* GetHandle() = 0;
101 virtual void Delete() = 0;
136 #endif // MMultiProcess_SharedMemory_h int GetID()
Definition: SharedMemory.h:31
DLL_SHAREDMEMORY_EXIM SharedMemory * CreateSharedMemory(const SharedMemoryID &iSharedMemId, SHM_ACCESS_MODE iMode=SHM_DUMMY)
#define DLL_SHAREDMEMORY_EXIM
Definition: SharedMemoryIncl.h:19
#define Int64
Definition: BasicTypes.h:36
Definition: SharedMemory.h:108
Definition: SharedMemory.h:131
unsigned Int32 shm_size_t
Definition: SharedMemory.h:23
#define Int32
Definition: BasicTypes.h:20
Definition: SharedMemory.h:109
Definition: SharedMemory.h:107
SHM_ACCESS_MODE
Shared memory is created in either read or write mode.
Definition: SharedMemory.h:105
Definition: StrongPtr.h:50
virtual ~SharedMemory()
Definition: SharedMemory.h:65
SharedMemoryID(int id)
Definition: SharedMemory.h:29
WCHAR TCHAR
Definition: PDCwtypes.h:352
Definition: SharedMemory.h:59
#define _ui64tot
Definition: PDCtchar.h:51
Definition: SharedMemory.h:21
#define NULL
Definition: Null.h:10
Definition: SharedMemory.h:26
MBase::StrongPtr< SharedMemory, MBase::DeleteOperatorGeneric< SharedMemory > > SharedMemoryPtr
Definition: SharedMemory.h:112