EpcTools
An event based multi-threaded C++ development framework.
|
Go to the documentation of this file.
18 #ifndef __eshmem_h_included
19 #define __eshmem_h_included
31 class ESharedMemoryError_UnableToCreateKeyFile :
public EError
34 ESharedMemoryError_UnableToCreateKeyFile(cpStr pszFile);
35 virtual const cpStr
Name()
const {
return "ESharedMemoryError_UnableToCreateKeyFile"; }
61 Void
init(cpStr file, Int
id, Int size);
87 return m_pCtrl->s_mutex;
94 eshmemctrl_t *m_pCtrl;
100 #endif // #define __eshmem_h_included
~ESharedMemory()
Class destructor.
Definition: eshmem.cpp:77
#define DECLARE_ERROR(__e__)
Declares exception class derived from EError with no constructor parameters.
Definition: eerror.h:53
ESharedMemory()
Default constructor.
Definition: eshmem.cpp:60
A private mutex (the mutex data is allocated from either the heap or stack).
Definition: esynch.h:175
Contains definitions for synchronization objects.
virtual const cpStr Name() const
Returns the name of this object.
Definition: eerror.h:189
#define DECLARE_ERROR_ADVANCED4(__e__)
Declares exception class derived from EError with an const char* as a constructor parameter and devel...
Definition: eerror.h:83
pVoid getDataPtr()
Retrieves a pointer to the first location of the shated memory.
Definition: eshmem.h:65
Void init(cpStr file, Int id, Int size)
Initializes this shared memory object. This method is called by the parameterized constructor.
Definition: eshmem.cpp:109
Int getUsageCount()
Retrieves the number of clients accessing the shared memory.
Definition: eshmem.cpp:169
#define DECLARE_ERROR_ADVANCED(__e__)
Declares exception class derived from EError with no constructor parameters and developer defined con...
Definition: eerror.h:59
The shared memory access class.
Definition: eshmem.h:43
virtual Void onDestroy()
Called when teh shared memory is destroyed.
Definition: eshmem.h:71
#define EPC_FILENAME_MAX
maximum file name length
Definition: ebase.h:37
The base class for exceptions derived from std::exception.
Definition: eerror.h:92