com.atlassian.bamboo.performance
Class Gate
java.lang.Object
com.atlassian.bamboo.performance.Gate
public class Gate
- extends 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 |
Gate
public Gate(int threads)
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 © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.