6949a7bd08
As in https://codereview.chromium.org/24024007, except the monitor->Wait is now called in a loop with a guard, to ensure we actually do get notified. Also, now correctly exiting the thread if we have no more child processes, using the initialize/terminate mutex as guard. BUG= R=sgjesse@google.com Review URL: https://codereview.chromium.org//23717038 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27380 260f80e4-7a28-3924-810f-c04153c831b5