aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/InputStream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/InputStream.cxx')
-rw-r--r--src/input/InputStream.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input/InputStream.cxx b/src/input/InputStream.cxx
index 0621437c4..d54eca643 100644
--- a/src/input/InputStream.cxx
+++ b/src/input/InputStream.cxx
@@ -93,6 +93,15 @@ InputStream::Update()
}
void
+InputStream::SetReady()
+{
+ assert(!ready);
+
+ ready = true;
+ cond.broadcast();
+}
+
+void
InputStream::WaitReady()
{
while (true) {