Class Gate

  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


public Gate(int threads)
Method Detail


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


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

Copyright © 2011 Atlassian. All Rights Reserved.