28 #ifndef _util_group_fileproc_h
29 #define _util_group_fileproc_h
31 #include <sys/types.h>
33 #include <util/group/memmsg.h>
distsize_t offset(int node)
Returns the global offset to node's data.
Definition: file.h:106
A template class that maintains references counts.
Definition: ref.h:361
int size(int node)
Returns the amount of data residing on node.
Definition: file.h:103
void sync()
Synchronizes all the nodes.
ProcFileGrp * clone()
Clones the given FileGrp. The new FileGrp may need to be initialized additionally.
The FileGrp abstract class provides a way of accessing distributed file in a parallel machine.
Definition: file.h:51
void release_readonly(void *data, distsize_t offset, int size)
This is called when read access is no longer needed.
void release_readwrite(void *data, distsize_t offset, int size)
This is called when read/write access is no longer needed.
void * obtain_readwrite(distsize_t offset, int size)
Only one thread can have an unreleased obtain_readwrite at a time.
void release_writeonly(void *data, distsize_t offset, int size)
This is called when write access is no longer needed.
void * obtain_readonly(distsize_t offset, int size)
This gives read access to the file location. No locking is done.
void * obtain_writeonly(distsize_t offset, int size)
This gives write access to the data location. No locking is done.
The ProcFileGrp concrete class provides an implementation of FileGrp for a single processor.
Definition: fileproc.h:39
void set_localsize(size_t)
Set the size of locally held data.
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14
Generated at Sun Jan 26 2020 23:24:01 for MPQC
3.0.0-alpha using the documentation package Doxygen
1.8.16.