change ring communication API to no longer require a static variable pointing to 'this' of the caller

This commit is contained in:
Axel Kohlmeyer
2017-06-14 17:01:06 -04:00
parent 286d4f2743
commit fcc387f232
18 changed files with 166 additions and 206 deletions

View File

@ -107,11 +107,9 @@ class ComputeChunkAtom : public Compute {
int *exclude; // 1 if atom is not assigned to any chunk
std::map<tagint,int> *hash; // store original chunks IDs before compression
// static variable for ring communication callback to access class data
// callback functions for ring communication
// callback function for ring communication
static ComputeChunkAtom *cptr;
static void idring(int, char *);
static void idring(int, char *, void *);
void assign_chunk_ids();
void compress_chunk_ids();