org.jboss.byteman.synchronization
Class Joiner

java.lang.Object
  extended by org.jboss.byteman.synchronization.Joiner

public class Joiner
extends java.lang.Object

class used by default helper to implement join dependencies between threads


Nested Class Summary
static class Joiner.Status
          status values returned from child add method
 
Field Summary
private  java.util.List<java.lang.Thread> children
           
private  int max
           
private  java.lang.Thread parent
           
 
Constructor Summary
Joiner(int max)
           
 
Method Summary
 Joiner.Status addChild(java.lang.Thread thread)
           
 int getMax()
           
 boolean joinChildren(java.lang.Thread thread)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

private java.util.List<java.lang.Thread> children

max

private int max

parent

private java.lang.Thread parent
Constructor Detail

Joiner

public Joiner(int max)
Method Detail

getMax

public int getMax()

addChild

public Joiner.Status addChild(java.lang.Thread thread)

joinChildren

public boolean joinChildren(java.lang.Thread thread)