Is there anyway to reset the CyclicBarrier once it breaks.
I'm running the threads in loop. I feel that doing below is not really thread-safe:
if (cyclicBarrier.await()==0) {
cyclicBarrier.reset()
}
I was hoping there is some kind of an atomic command to do it like:
cyclicBarrier.awaitAndReset();