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>
List of all members.
|
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: