From 6773adc7716eea7656c4590b54f7c99840ff4087 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 11 May 2014 15:34:48 +0200 Subject: InputStream: convert to class --- src/input/InputStream.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/input/InputStream.cxx') 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 @@ -92,6 +92,15 @@ InputStream::Update() plugin.update(this); } +void +InputStream::SetReady() +{ + assert(!ready); + + ready = true; + cond.broadcast(); +} + void InputStream::WaitReady() { -- cgit v1.2.3