com.atlassian.bamboo.performance
Class Gate

java.lang.Object
  extended by com.atlassian.bamboo.performance.Gate

public class Gate
extends java.lang.Object

Simple starting gate for co-ordinating a bunch of threads.


Constructor Summary
Gate(int threads)
           
 
Method Summary
 void go()
          Called from the starter thread.
 void ready()
          Called from the racing threads when ready.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gate

public Gate(int threads)
Method Detail

ready

public void ready()
Called from the racing threads when ready. They will then block until all threads are at this point;


go

public void go()
Called from the starter thread. Blocks until everybody is ready, and then signals go.



Copyright © 2011 Atlassian. All Rights Reserved.