diff options
author | Max Kellermann <max@duempel.org> | 2013-01-28 23:35:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-28 23:35:01 +0100 |
commit | cffc78ad6a978c8ef0afae4fbdd4b189612a7167 (patch) | |
tree | 2496679726754549fd6aad4da0ab558b07bbe0bf /src/InputInternal.cxx | |
parent | dcf55c7e328578d435eb14277cb6ba9e072f7e9c (diff) | |
download | mpd-cffc78ad6a978c8ef0afae4fbdd4b189612a7167.tar.gz mpd-cffc78ad6a978c8ef0afae4fbdd4b189612a7167.tar.xz mpd-cffc78ad6a978c8ef0afae4fbdd4b189612a7167.zip |
InputStream: store references instead of pointers
Diffstat (limited to '')
-rw-r--r-- | src/InputInternal.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/InputInternal.cxx b/src/InputInternal.cxx index a154b68da..e110ebf0a 100644 --- a/src/InputInternal.cxx +++ b/src/InputInternal.cxx @@ -24,14 +24,13 @@ void input_stream_signal_client(struct input_stream *is) { - if (is->cond != NULL) - is->cond->broadcast(); + is->cond.broadcast(); } void input_stream_set_ready(struct input_stream *is) { - const ScopeLock protect(*is->mutex); + const ScopeLock protect(is->mutex); if (!is->ready) { is->ready = true; |