383 |
|
/** |
384 |
|
* Reset the barrier to its initial state. If any parties are |
385 |
|
* currently waiting at the barrier, they will return with a |
386 |
< |
* {@link BrokenBarrierException}. |
386 |
> |
* {@link BrokenBarrierException}. Note that resets <em>after</em> |
387 |
> |
* a breakage can be complicated to carry out; threads need to |
388 |
> |
* re-synchronize in some other way, and choose one to perform the |
389 |
> |
* reset. It may be preferable to instead create a new barrier |
390 |
> |
* for subsequent use. |
391 |
|
*/ |
392 |
|
public void reset() { |
393 |
|
lock.lock(); |