28 #ifndef _util_group_memshm_h
29 #define _util_group_memshm_h
31 #include <sys/types.h>
36 #include <util/group/globcnt.h>
37 #include <util/group/memmsg.h>
39 #include <util/group/rnglock.h>
50 void **attach_address_;
58 void clear_release_count();
59 void wait_for_release();
65 int attach_memory(
void *ataddress,
int size);
void * localdata()
Returns a pointer to the local data.
distsize_t offset(int node)
Returns the global offset to node's memory.
Definition: memory.h:164
void * obtain_readonly(distsize_t offset, size_t size)
This gives read access to the memory location. No locking is done.
A template class that maintains references counts.
Definition: ref.h:361
void * obtain_writeonly(distsize_t offset, size_t size)
This gives write access to the memory location. No locking is done.
void set_localsize(size_t)
Set the size of locally held memory.
The ShmMemoryGrp concrete class provides an implementation of MsgMemoryGrp.
Definition: memshm.h:46
void print(std::ostream &o=ExEnv::out0()) const
Prints out information about the object.
int size(int node)
Returns the amount of memory residing on node.
Definition: memory.h:161
void release_readonly(void *data, distsize_t offset, size_t size)
This is called when read access is no longer needed.
The GlobalCounter class allows processes on the same SMP node to share a counter using SysV IPC semap...
Definition: globcnt.h:40
void * obtain_readwrite(distsize_t offset, size_t size)
Only one thread can have an unreleased obtain_readwrite at a time.
static std::ostream & out0()
Return an ostream that writes from node 0.
void release_writeonly(void *data, distsize_t offset, size_t size)
This is called when write access is no longer needed.
A MsgMemoryGrp that initializes its data using a messagegrp.
Definition: memmsg.h:37
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14
void release_readwrite(void *data, distsize_t offset, size_t size)
This is called when read/write access is no longer needed.
Generated at Sun Jan 26 2020 23:24:01 for MPQC
3.0.0-alpha using the documentation package Doxygen
1.8.16.