summaryrefslogtreecommitdiffstats
path: root/subprocess.cc
diff options
context:
space:
mode:
Diffstat (limited to 'subprocess.cc')
-rw-r--r--subprocess.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/subprocess.cc b/subprocess.cc
index 82d3683..0c93c4a 100644
--- a/subprocess.cc
+++ b/subprocess.cc
@@ -146,3 +146,10 @@ void SubprocessSet::DoWork(string* err) {
}
}
+Subprocess* SubprocessSet::NextFinished() {
+ if (finished_.empty())
+ return NULL;
+ Subprocess* subproc = finished_.front();
+ finished_.pop();
+ return subproc;
+}