joyent/libuv — pull request #633 by shigeki (2012-11-27 13:53:10+00:00)
Title: test: fix finished consumer number check

I made a bug in f7c991f1cef1e0691b384b900f551a5c30745c36 that an error sometimes occurs in checking the finished consumer number in the test because of racing when a producer thread finishes before the last consumer does.
Checking should be put in the place where joining all threads is finished.