blocking_dequeue exit/enter monitor too often
Brought to you by:
mdwelsh
For all 3 blocking_dequeue, I see the loop exits and
enters the monitor endlessly.
The synchronized statement should be outside the loop.
synchronized (blocker) { //moved here
while (true) {
//synchronized (blocker) { //HACK: do not
re-synchronize move out of loop