Github user karuturi commented on the pull request:
https://github.com/apache/cloudstack/pull/572#issuecomment-122234984
Its not always safe. http://stackoverflow.com/a/14837457/201514
In our example, the threads unnecessarily wait for 1000 ms if the previous
threads exited from a path which doesnt do a notify
updated code looks good to me. :+1:
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---