commit | 7039db5b0504d030d56abfb506ef479db8909226 | [log] [tgz] |
---|---|---|
author | Saša Živkov <sasa.zivkov@sap.com> | Tue Apr 25 10:11:24 2017 +0200 |
committer | Saša Živkov <zivkov@gmail.com> | Tue Apr 25 08:20:01 2017 +0000 |
tree | 02c0e185933a178483c50393417962e9c42ec915 | |
parent | bdc79300cd4103f0ca76f5d18a777e5ba9dc331a [diff] |
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