Closes #351. This eliminates the race condition between the Barrier destructor and a call to Barrier.wait().
Test code:
for i in {1..16}; do
yes > /dev/null &
done
for i in {1..50}; do
Rscript -e "s <- httpuv::startServer('0.0.0.0', 8000, list()); cat('.')"
done
killall yes
If everything works, it'll just print out a bunch of dots, like .........
If there's a crash, it'll print out Abort trap: 6.
Closes #351. This eliminates the race condition between the
Barrier
destructor and a call toBarrier.wait()
.Test code:
If everything works, it'll just print out a bunch of dots, like
........
.If there's a crash, it'll print out
Abort trap: 6
.