UNIVERS
15.3
UNIVERS base processing software API
|
#include <memctl.H>
Public Member Functions | |
SharedMem (size_t volume) | |
SharedMem (size_t volume, key_t shm_k) | |
virtual | ~SharedMem () |
virtual size_t | size () |
virtual void | resize (size_t volume) |
virtual void * | ptr () |
virtual int | attach_cnt () |
Public Member Functions inherited from ObjectIPC | |
ObjectIPC (key_t id_k) | |
virtual key_t | key () |
Public Member Functions inherited from MemBlock | |
virtual | ~MemBlock () |
virtual void | operator= (MemBlock &mem_blk) |
Protected Member Functions | |
void | coherency () |
Protected Member Functions inherited from ObjectIPC | |
void | new_key () |
Shared memory service. Auto realloc behaviour.
SharedMem::SharedMem | ( | size_t | volume | ) |
Allocate
SharedMem::SharedMem | ( | size_t | volume, |
key_t | shm_k | ||
) |
Attach
|
virtual |
Destroy shared memory page only if it is attached nowhere
|
virtual |
Returns count of attached processes (users)
Reimplemented from ObjectIPC.
|
protected |
Check coherency of shm_id and key()
|
virtual |
Return address of page in local space with autoattachement
Implements MemBlock.
|
virtual |
Change size of page to new volume without any guarantee of saving data during resize
Implements MemBlock.
|
virtual |
Get size of allocated shmem page
Implements MemBlock.