28 #ifndef _util_group_messshm_h
29 #define _util_group_messshm_h
32 #include <sys/types.h>
37 #include <util/group/message.h>
41 #define SHMCOMMBUFSIZE 1500000
49 int n_wait_for_change;
51 char buf[SHMCOMMBUFSIZE];
70 void basic_send(
int target,
int type,
const void* data,
int nbyte);
71 void basic_recv(
int type,
void* data,
int nbyte);
73 void initialize(
int nprocs);
87 void get_change(
int node);
88 void put_change(
int node);
89 void wait_for_write(
int node);
90 void release_write(
int node);
92 void print_buffer(
int node,
int me);
int basic_probe(int type)
Must be implemented by specializations.
ShmMessageGrp()
Reads the number of processors from environmental variable NUMPROC.
A template class that maintains references counts.
Definition: ref.h:332
void basic_recv(int type, void *data, int nbyte)
Must be implemented by specializations.
Uses integer message types to send and receive messages.
Definition: message.h:358
The ShmMessageGrp class is an implementation of MessageGrp that allows multiple process to be started...
Definition: messshm.h:68
Ref< MessageGrp > clone(void)
Returns a copy of this MessageGrp specialization that provides an independent communication context.
int me()
Returns my processor number. In the range [0,n()).
Definition: message.h:138
void sync()
Synchronize all of the processors.
void basic_send(int target, int type, const void *data, int nbyte)
Must be implemented by specializations.
Generated at Sun Jan 26 2020 23:33:04 for MPQC
2.3.1 using the documentation package Doxygen
1.8.16.