MPQC  3.0.0-alpha
sc::GlobalCounter Class Reference

The GlobalCounter class allows processes on the same SMP node to share a counter using SysV IPC semaphores. More...

#include <util/group/globcnt.h>

Public Member Functions

void initialize ()
 
void initialize (const char *stringrep)
 
char * stringrep ()
 
void wait_for_zero ()
 
void operator+= (int)
 
void operator++ ()
 
void operator-- ()
 
void operator++ (int)
 
void operator-- (int)
 
void operator= (int)
 
int val ()
 

Detailed Description

The GlobalCounter class allows processes on the same SMP node to share a counter using SysV IPC semaphores.

A process can create a GlobalCounter using the void CTOR. This process can share the string representation of the counter with other processes. They can then use the const char * CTOR to create global counters that reference the same global counter.


The documentation for this class was generated from the following file:

Generated at Sun Jan 26 2020 23:24:06 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.