ibis.satin.impl.spawnSync
Class SpawnCounter

java.lang.Object
  extended by ibis.satin.impl.spawnSync.SpawnCounter

public final class SpawnCounter
extends Object

This class represents a counter of spawning events. Access to its internals is package-protected.


Constructor Summary
SpawnCounter()
           
 
Method Summary
 void decr(InvocationRecord r)
           
static void deleteSpawnCounter(SpawnCounter s)
          Makes a spawn counter available for recycling.
 int getValue()
           
 void incr(InvocationRecord r)
           
static SpawnCounter newSpawnCounter()
          Obtains a new spawn counter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpawnCounter

public SpawnCounter()
Method Detail

newSpawnCounter

public static final SpawnCounter newSpawnCounter()
Obtains a new spawn counter. This does not need to be synchronized, only one thread spawns.

Returns:
a new spawn counter.

deleteSpawnCounter

public static final void deleteSpawnCounter(SpawnCounter s)
Makes a spawn counter available for recycling. This does not need to be synchronized, only one thread spawns.

Parameters:
s - the spawn counter made available.

incr

public void incr(InvocationRecord r)

decr

public void decr(InvocationRecord r)

getValue

public int getValue()


The Ibis project