diff options
author | Max Kellermann <max@duempel.org> | 2014-05-11 15:34:48 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-05-11 15:34:48 +0200 |
commit | 6773adc7716eea7656c4590b54f7c99840ff4087 (patch) | |
tree | b71756798018721f3aa472ce1b81aa14e84239b8 /src/input/InputStream.cxx | |
parent | ee2afb35dd715d9f34a938cd54ed02a3c0091a78 (diff) |
InputStream: convert to class
Diffstat (limited to 'src/input/InputStream.cxx')
-rw-r--r-- | src/input/InputStream.cxx | 9 |
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) { |