Replace wait/notify with CyclicBarrier

There was a tiny chance of the notify being executed before the other
thread calls wait. Using CyclicBarrier solves this issue and the code is
also a bit easier to read.

Change-Id: I4384dfea911ebc52bcbc3c25049b40fcb4a34fde
1 file changed
tree: 02c0e185933a178483c50393417962e9c42ec915
  1. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. .mailmap
  6. BUCK