|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.avalon.excalibur.concurrent.ThreadBarrier
A thread barrier blocks all threads hitting it until a pre-defined number of threads arrive at the barrier. This is useful for implementing release consistent concurrency where you don't want to take the performance penalty of providing mutual exclusion to shared resources
コンストラクタの概要 | |
ThreadBarrier(int count)
Initializes a thread barrier object with a given thread count |
メソッドの概要 | |
void |
barrierSynchronize()
This method blocks all threads calling it until the threshold number of threads have called it. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public ThreadBarrier(int count)
pCount
- is the number of threads that need to block on
barrierSynchronize() before they will be allowed to pass throughbarrierSynchronize()
メソッドの詳細 |
public void barrierSynchronize() throws java.lang.InterruptedException
java.lang.InterruptedException
- if any thread blocked during the call is
interrupted
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |